struct

Pampero::Bytes32

Inherits Struct < Value < Object

Constructors

new(val : UInt8 = 0_u8)
Source
new(data : StaticArray(UInt8, 32))
Source
new(val : BigInt | UInt64)
Source
new(str : String)
Source

Instance methods

inspect

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.

Source
to_hex
Source
to_json(json : JSON::Builder) : Nil
Source
to_json_object_key
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
to_uint256
Source