class Branchtree::Branch::Info
Attributes
ahead_of_parent[R]
ahead_of_upstream[R]
behind_parent[R]
behind_upstream[R]
upstream[R]
Public Class Methods
new(branch:, ahead_of_parent:, behind_parent:, upstream:, ahead_of_upstream:, behind_upstream:)
click to toggle source
# File lib/branchtree/branch.rb, line 164 def initialize(branch:, ahead_of_parent:, behind_parent:, upstream:, ahead_of_upstream:, behind_upstream:) @branch = branch @ahead_of_parent = ahead_of_parent @behind_parent = behind_parent @upstream = upstream @ahead_of_upstream = ahead_of_upstream @behind_upstream = behind_upstream end
Public Instance Methods
empty?()
click to toggle source
# File lib/branchtree/branch.rb, line 175 def empty? false end
has_upstream?()
click to toggle source
# File lib/branchtree/branch.rb, line 183 def has_upstream? @upstream != "" end
populate()
click to toggle source
# File lib/branchtree/branch.rb, line 187 def populate self end
repopulate()
click to toggle source
# File lib/branchtree/branch.rb, line 191 def repopulate NullInfo.new(@branch).populate end
valid?()
click to toggle source
# File lib/branchtree/branch.rb, line 179 def valid? true end