Class: Vertigo::Architecture
- Defined in:
- lib/vertigo/ast.rb,
lib/vertigo/ast_vertigo_rkgen.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#decls ⇒ Object
Returns the value of attribute decls.
-
#entity_name ⇒ Object
Returns the value of attribute entity_name.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from AstNode
Instance Method Summary collapse
- #<<(e) ⇒ Object
-
#initialize(name = nil, entity_name = nil, decls = [], body = nil) ⇒ Architecture
constructor
A new instance of Architecture.
Methods inherited from AstNode
Constructor Details
#initialize(name = nil, entity_name = nil, decls = [], body = nil) ⇒ Architecture
Returns a new instance of Architecture.
120 121 122 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 120 def initialize name=nil,entity_name=nil,decls=[],body=nil @name,@entity_name,@decls,@body=name,entity_name,decls,body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
119 120 121 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 119 def body @body end |
#decls ⇒ Object
Returns the value of attribute decls.
119 120 121 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 119 def decls @decls end |
#entity_name ⇒ Object
Returns the value of attribute entity_name.
119 120 121 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 119 def entity_name @entity_name end |
#name ⇒ Object
Returns the value of attribute name.
119 120 121 |
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 119 def name @name end |
Instance Method Details
#<<(e) ⇒ Object
88 89 90 |
# File 'lib/vertigo/ast.rb', line 88 def << e @body << e end |