Class: Descriptor::MergePoint
Defined Under Namespace
Classes: List
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(position, count = -1)) ⇒ MergePoint
constructor
A new instance of MergePoint.
- #valid? ⇒ Boolean
Constructor Details
#initialize(position, count = -1)) ⇒ MergePoint
Returns a new instance of MergePoint.
201 202 203 204 205 |
# File 'lib/rui/descriptor.rb', line 201 def initialize(position, count = -1) @position = position @count = count raise "Creating invalid merge point" if @count == 0 end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
170 171 172 |
# File 'lib/rui/descriptor.rb', line 170 def count @count end |
#position ⇒ Object
Returns the value of attribute position.
170 171 172 |
# File 'lib/rui/descriptor.rb', line 170 def position @position end |
Instance Method Details
#valid? ⇒ Boolean
207 208 209 |
# File 'lib/rui/descriptor.rb', line 207 def valid? @count != 0 end |