Class: Ruby::List
- Includes:
- Alternation::List, Conversions::List
- Defined in:
- lib/ruby/list.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes included from Node::Composite
Instance Method Summary collapse
-
#initialize(elements = nil) ⇒ List
constructor
A new instance of List.
- #method_missing(method, *args, &block) ⇒ Object
- #nodes ⇒ Object
Methods included from Alternation::List
Methods included from Conversions::List
Methods inherited from Aggregate
#position, #position=, #prolog, #prolog=, #to_ruby
Methods inherited from Node
#<=>, #all_nodes, #column, #length, #row
Methods included from Conversions
Methods included from Node::Traversal
#has_token?, #has_type?, #has_value?, #is_instance_of?, #left_of?, #matches?, #position?, #right_of?, #select
Methods included from Node::Source
#context, #filename, #line, #lines, #src
Methods included from Node::Composite
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
19 20 21 |
# File 'lib/ruby/list.rb', line 19 def method_missing(method, *args, &block) elements.respond_to?(method) ? elements.send(method, *args, &block) : super end |
Instance Method Details
#nodes ⇒ Object
15 16 17 |
# File 'lib/ruby/list.rb', line 15 def nodes elements end |