Class: Vertigo::TypeDecl

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, spec = nil) ⇒ TypeDecl

Returns a new instance of TypeDecl.



344
345
346
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 344

def initialize name=nil,spec=nil
  @name,@spec=name,spec
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



343
344
345
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 343

def name
  @name
end

#specObject

Returns the value of attribute spec.



343
344
345
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 343

def spec
  @spec
end