Class: Ruby::NamedAggregate

Inherits:
DelimitedAggregate show all
Defined in:
lib/ruby/aggregate.rb

Direct Known Subclasses

Case, Class, Method

Instance Attribute Summary

Attributes included from Ruby::Node::Composite

#parent

Instance Method Summary collapse

Methods inherited from Aggregate

#position, #position=, #prolog, #prolog=, #to_ruby

Methods inherited from Node

#<=>, #all_nodes, #column, #length, #nodes, #row

Methods included from Conversions

included, #to_node

Methods included from Ruby::Node::Traversal

#has_token?, #has_type?, #has_value?, #is_instance_of?, #left_of?, #matches?, #position?, #right_of?, #select

Methods included from Ruby::Node::Source

#context, #filename, #line, #lines, #src

Methods included from Ruby::Node::Composite

included, #root, #root?

Constructor Details

#initialize(identifier, ldelim = nil, rdelim = nil) ⇒ NamedAggregate

Returns a new instance of NamedAggregate.



41
42
43
44
# File 'lib/ruby/aggregate.rb', line 41

def initialize(identifier, ldelim = nil, rdelim = nil)
  self.identifier = identifier
  super(ldelim, rdelim)
end