Class: Vertigo::Package

Inherits:
AstNode 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 = []) ⇒ Package

Returns a new instance of Package.



85
86
87
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 85

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

Instance Attribute Details

#declsObject

Returns the value of attribute decls.



84
85
86
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 84

def decls
  @decls
end

#nameObject

Returns the value of attribute name.



84
85
86
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 84

def name
  @name
end