Class: ABI::Array
Overview
class String
Instance Attribute Summary collapse
-
#subtype ⇒ Object
readonly
Returns the value of attribute subtype.
Instance Method Summary collapse
- #==(another_type) ⇒ Object
- #format ⇒ Object
-
#initialize(subtype) ⇒ Array
constructor
A new instance of Array.
-
#size ⇒ Object
note: dynamic (not known at compile-time).
Methods inherited from Type
Constructor Details
#initialize(subtype) ⇒ Array
Returns a new instance of Array.
102 103 104 |
# File 'lib/abicoder/types.rb', line 102 def initialize( subtype ) @subtype = subtype end |
Instance Attribute Details
#subtype ⇒ Object (readonly)
Returns the value of attribute subtype.
101 102 103 |
# File 'lib/abicoder/types.rb', line 101 def subtype @subtype end |
Instance Method Details
#==(another_type) ⇒ Object
107 108 109 |
# File 'lib/abicoder/types.rb', line 107 def ==(another_type) another_type.kind_of?( Array ) && @subtype == another_type.subtype end |
#format ⇒ Object
106 |
# File 'lib/abicoder/types.rb', line 106 def format() "#{@subtype.format}[]"; end |
#size ⇒ Object
note: dynamic (not known at compile-time)
105 |
# File 'lib/abicoder/types.rb', line 105 def size() nil; end |