Class: Vertigo::EnumDecl

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast.rb,
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(elements = []) ⇒ EnumDecl

Returns a new instance of EnumDecl.



358
359
360
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 358

def initialize elements=[]
  @elements=elements
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements.



357
358
359
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 357

def elements
  @elements
end

Instance Method Details

#<<(e) ⇒ Object



52
53
54
# File 'lib/vertigo/ast.rb', line 52

def << e
  @elements << e
end