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.
67 68 69 70 |
# File 'lib/crokus/ast.rb', line 67 def initialize name=nil,decls=[] super(name) @decls=decls end |
Instance Attribute Details
#decls ⇒ Object
Returns the value of attribute decls.
66 67 68 |
# File 'lib/crokus/ast.rb', line 66 def decls @decls end |