Class: AbiCoderRb::Array
Instance Attribute Summary collapse
-
#inner_type ⇒ Object
readonly
Returns the value of attribute inner_type.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #format ⇒ Object
-
#initialize(inner_type) ⇒ Array
constructor
A new instance of Array.
- #size ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(inner_type) ⇒ Array
Returns a new instance of Array.
135 136 137 |
# File 'lib/abi_coder_rb/type/types.rb', line 135 def initialize(inner_type) @inner_type = inner_type end |
Instance Attribute Details
#inner_type ⇒ Object (readonly)
Returns the value of attribute inner_type.
133 134 135 |
# File 'lib/abi_coder_rb/type/types.rb', line 133 def inner_type @inner_type end |
Instance Method Details
#==(other) ⇒ Object
147 148 149 |
# File 'lib/abi_coder_rb/type/types.rb', line 147 def ==(other) other.is_a?(Array) && @inner_type == other.inner_type end |
#format ⇒ Object
143 144 145 |
# File 'lib/abi_coder_rb/type/types.rb', line 143 def format "#{@inner_type.format}[]" end |
#size ⇒ Object
139 140 141 |
# File 'lib/abi_coder_rb/type/types.rb', line 139 def size nil end |