Class: Ruby::Alias
Instance Attribute Summary
Attributes included from Node::Composite
Instance Method Summary collapse
-
#initialize(identifier, arguments) ⇒ Alias
constructor
A new instance of Alias.
- #nodes ⇒ Object
Methods inherited from Call
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(identifier, arguments) ⇒ Alias
Returns a new instance of Alias.
25 26 27 28 |
# File 'lib/ruby/call.rb', line 25 def initialize(identifier, arguments) self.identifier = identifier self.arguments = arguments end |
Instance Method Details
#nodes ⇒ Object
30 31 32 |
# File 'lib/ruby/call.rb', line 30 def nodes [identifier, arguments].flatten end |