Class: Vertigo::RecordItem

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) ⇒ RecordItem

Returns a new instance of RecordItem.



372
373
374
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 372

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



371
372
373
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 371

def name
  @name
end

#typeObject

Returns the value of attribute type.



371
372
373
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 371

def type
  @type
end