Class: Yadriggy::C::ArrayType
- Inherits:
-
Yadriggy::CompositeType
- Object
- Type
- Yadriggy::CompositeType
- Yadriggy::C::ArrayType
- Defined in:
- lib/yadriggy/c/ctypecheck.rb
Instance Attribute Summary collapse
-
#element_type ⇒ Object
readonly
Returns the value of attribute element_type.
Attributes inherited from Yadriggy::CompositeType
Instance Method Summary collapse
-
#initialize(element_type) ⇒ ArrayType
constructor
A new instance of ArrayType.
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_type ⇒ Object (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 |