Class: AbiCoderRb::Bool

Inherits:
Type
  • Object
show all
Defined in:
lib/abi_coder_rb/types.rb

Overview

class Uint

Instance Method Summary collapse

Methods inherited from Type

#dynamic?, parse

Instance Method Details

#==(other) ⇒ Object



140
141
142
# File 'lib/abi_coder_rb/types.rb', line 140

def ==(other)
  other.is_a?(Bool)
end

#formatObject



136
137
138
# File 'lib/abi_coder_rb/types.rb', line 136

def format
  "bool"
end

#sizeObject

note: always uses 32 bytes (with padding)



132
133
134
# File 'lib/abi_coder_rb/types.rb', line 132

def size
  32
end