Class: Vertigo::Architecture

Inherits:
AstNode
  • Object
show all
Defined in:
lib/vertigo/ast.rb,
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_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

#bodyObject

Returns the value of attribute body.



119
120
121
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 119

def body
  @body
end

#declsObject

Returns the value of attribute decls.



119
120
121
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 119

def decls
  @decls
end

#entity_nameObject

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

#nameObject

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