Class: Crokus::Struct

Inherits:
Type show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Type

#name, #precisions

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

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

#declsObject

Returns the value of attribute decls.



70
71
72
# File 'lib/crokus/ast.rb', line 70

def decls
  @decls
end