Class: Vertigo::AttributeSpec

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, entity_spec = nil, expr = nil) ⇒ AttributeSpec

Returns a new instance of AttributeSpec.



197
198
199
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 197

def initialize name=nil,entity_spec=nil,expr=nil
  @name,@entity_spec,@expr=name,entity_spec,expr
end

Instance Attribute Details

#entity_specObject

Returns the value of attribute entity_spec.



196
197
198
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 196

def entity_spec
  @entity_spec
end

#exprObject

Returns the value of attribute expr.



196
197
198
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 196

def expr
  @expr
end

#nameObject

Returns the value of attribute name.



196
197
198
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 196

def name
  @name
end