Class: Vertigo::EntitySpec

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(elements = [], entity_class = nil) ⇒ EntitySpec

Returns a new instance of EntitySpec.



204
205
206
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 204

def initialize elements=[],entity_class=nil
  @elements,@entity_class=elements,entity_class
end

Instance Attribute Details

#elementsObject

Returns the value of attribute elements.



203
204
205
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 203

def elements
  @elements
end

#entity_classObject

Returns the value of attribute entity_class.



203
204
205
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 203

def entity_class
  @entity_class
end