Class: Ruby::Module
- Inherits:
-
DelimitedAggregate
- Object
- Node
- Aggregate
- DelimitedAggregate
- Ruby::Module
- Defined in:
- lib/ruby/const.rb
Instance Attribute Summary
Attributes included from Node::Composite
Instance Method Summary collapse
-
#initialize(const, body, ldelim, rdelim) ⇒ Module
constructor
A new instance of Module.
- #nodes ⇒ Object
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
#initialize(const, body, ldelim, rdelim) ⇒ Module
Returns a new instance of Module.
24 25 26 27 28 |
# File 'lib/ruby/const.rb', line 24 def initialize(const, body, ldelim, rdelim) self.const = const self.body = body super(ldelim, rdelim) end |
Instance Method Details
#nodes ⇒ Object
30 31 32 |
# File 'lib/ruby/const.rb', line 30 def nodes [ldelim, const, body, rdelim].compact end |