Class: Crokus::Struct
Instance Attribute Summary collapse
-
#decls ⇒ Object
Returns the value of attribute decls.
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(name = nil, decls = []) ⇒ Struct
constructor
A new instance of Struct.
Methods inherited from Ast
Constructor Details
#initialize(name = nil, decls = []) ⇒ Struct
Returns a new instance of Struct.
71 72 73 74 |
# File 'lib/crokus/ast.rb', line 71 def initialize name=nil,decls=[] super(name) @decls=decls end |
Instance Attribute Details
#decls ⇒ Object
Returns the value of attribute decls.
70 71 72 |
# File 'lib/crokus/ast.rb', line 70 def decls @decls end |