Class: BinaryCodec::Hash160
- Inherits:
-
Hash
- Object
- SerializedType
- ComparableSerializedType
- Hash
- BinaryCodec::Hash160
- Defined in:
- lib/binary-codec/types/hash.rb
Instance Attribute Summary
Attributes inherited from SerializedType
Instance Method Summary collapse
-
#initialize(bytes = nil) ⇒ Hash160
constructor
A new instance of Hash160.
Methods inherited from Hash
#compare_to, from, from_parser, #nibblet, width
Methods inherited from ComparableSerializedType
#compare_to, #eq, #gt, #gte, #lt, #lte
Methods inherited from SerializedType
from, from_bytes, from_hex, from_json, from_parser, get_type_by_name, #to_byte_sink, #to_bytes, #to_hex, #to_json, #value_of
Constructor Details
#initialize(bytes = nil) ⇒ Hash160
Returns a new instance of Hash160.
85 86 87 |
# File 'lib/binary-codec/types/hash.rb', line 85 def initialize(bytes = nil) super(bytes) end |