Class: Crokus::ArrayOf

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(t, size = nil) ⇒ ArrayOf

Returns a new instance of ArrayOf.



90
91
92
93
# File 'lib/crokus/ast.rb', line 90

def initialize t,size=nil
  super(t)
  @size=size
end

Instance Attribute Details

#sizeObject

Returns the value of attribute size.



89
90
91
# File 'lib/crokus/ast.rb', line 89

def size
  @size
end