Class: Yadriggy::C::ArrayType

Inherits:
Yadriggy::CompositeType show all
Defined in:
lib/yadriggy/c/ctypecheck.rb

Instance Attribute Summary collapse

Attributes inherited from Yadriggy::CompositeType

#args, #ruby_class

Instance Method Summary collapse

Methods inherited from Yadriggy::CompositeType

#==, #first_arg, #name, #supertype

Methods inherited from Type

#!=, #<=, #copy, #eql?, error_found!, #exact_type, #has_role?, #name, role, #supertype

Constructor Details

#initialize(element_type) ⇒ ArrayType

Returns a new instance of ArrayType.



12
13
14
# File 'lib/yadriggy/c/ctypecheck.rb', line 12

def initialize(element_type)
  super(Array, element_type)
end

Instance Attribute Details

#element_typeObject (readonly)

Returns the value of attribute element_type.



10
11
12
# File 'lib/yadriggy/c/ctypecheck.rb', line 10

def element_type
  @element_type
end