Class: Vertigo::AttributeDecl

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, type = nil) ⇒ AttributeDecl

Returns a new instance of AttributeDecl.



190
191
192
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 190

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



189
190
191
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 189

def name
  @name
end

#typeObject

Returns the value of attribute type.



189
190
191
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 189

def type
  @type
end