Class: Vertigo::PackageBody

Inherits:
AstNode
  • Object
show all
Defined in:
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(name = nil, decls = []) ⇒ PackageBody

Returns a new instance of PackageBody.



92
93
94
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 92

def initialize name=nil,decls=[]
  @name,@decls=name,decls
end

Instance Attribute Details

#declsObject

Returns the value of attribute decls.



91
92
93
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 91

def decls
  @decls
end

#nameObject

Returns the value of attribute name.



91
92
93
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 91

def name
  @name
end