Class: Ruby::Const
- Inherits:
-
DelimitedAggregate
- Object
- Node
- Aggregate
- DelimitedAggregate
- Ruby::Const
- Defined in:
- lib/ruby/const.rb
Instance Attribute Summary
Attributes included from Node::Composite
Instance Method Summary collapse
-
#initialize(token = nil, position = nil, prolog = nil, ldelim = nil) ⇒ Const
constructor
A new instance of Const.
- #nodes ⇒ Object
- #position ⇒ Object
Methods inherited from Aggregate
#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(token = nil, position = nil, prolog = nil, ldelim = nil) ⇒ Const
Returns a new instance of Const.
7 8 9 10 |
# File 'lib/ruby/const.rb', line 7 def initialize(token = nil, position = nil, prolog = nil, ldelim = nil) self.identifier = Ruby::Identifier.new(token, position, prolog) super(ldelim) end |