Class: Vertigo::SubTypeDecl

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

Returns a new instance of SubTypeDecl.



351
352
353
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 351

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



350
351
352
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 350

def name
  @name
end

#specObject

Returns the value of attribute spec.



350
351
352
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 350

def spec
  @spec
end