Class: Command::Results::ListEnd
- Defined in:
- lib/command-set/result-list.rb
Overview
A sort of virtual list element, used to denote the end of a list in iteration.
Instance Attribute Summary collapse
-
#end_of ⇒ Object
readonly
Returns the value of attribute end_of.
Attributes inherited from ListItem
#depth, #options, #sequence, #value
Instance Method Summary collapse
-
#initialize(end_of) ⇒ ListEnd
constructor
A new instance of ListEnd.
- #inspect ⇒ Object
- #next_sibling ⇒ Object
- #order ⇒ Object
- #parent ⇒ Object
- #to_s ⇒ Object
Methods inherited from ListItem
#==, #eql?, #filter, #match, #match_on, #tree_order_next
Constructor Details
#initialize(end_of) ⇒ ListEnd
Returns a new instance of ListEnd.
82 83 84 |
# File 'lib/command-set/result-list.rb', line 82 def initialize(end_of) @end_of = end_of end |
Instance Attribute Details
#end_of ⇒ Object (readonly)
Returns the value of attribute end_of.
86 87 88 |
# File 'lib/command-set/result-list.rb', line 86 def end_of @end_of end |
Instance Method Details
#inspect ⇒ Object
104 105 106 |
# File 'lib/command-set/result-list.rb', line 104 def inspect "<e(#{@end_of.order}):#{@end_of.name}>" end |
#next_sibling ⇒ Object
96 97 98 |
# File 'lib/command-set/result-list.rb', line 96 def next_sibling @end_of.next_sibling end |
#order ⇒ Object
92 93 94 |
# File 'lib/command-set/result-list.rb', line 92 def order @end_of.order end |
#parent ⇒ Object
88 89 90 |
# File 'lib/command-set/result-list.rb', line 88 def parent @end_of.parent end |
#to_s ⇒ Object
100 101 102 |
# File 'lib/command-set/result-list.rb', line 100 def to_s @end_of.to_s end |