Class: Types::Typed::Bytes32Type

Inherits:
ValueType show all
Defined in:
lib/solidity/typed/metatypes/types.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#array?, #check_and_normalize_literal, #eql?, #hash, #mapping?, #parse_integer, #pretty_print, #raise_type_error

Class Method Details

.instanceObject



183
# File 'lib/solidity/typed/metatypes/types.rb', line 183

def self.instance()  @instance ||= new; end

Instance Method Details

#==(other) ⇒ Object



189
# File 'lib/solidity/typed/metatypes/types.rb', line 189

def ==(other)  other.is_a?( Bytes32Type ); end

#formatObject Also known as: to_s



186
# File 'lib/solidity/typed/metatypes/types.rb', line 186

def format() 'bytes32'; end

#mut?Boolean

Returns:

  • (Boolean)


195
# File 'lib/solidity/typed/metatypes/types.rb', line 195

def mut?() false; end

#new(initial_value) ⇒ Object



198
# File 'lib/solidity/typed/metatypes/types.rb', line 198

def new( initial_value ) Bytes32.new( initial_value ); end

#typedclassObject



193
# File 'lib/solidity/typed/metatypes/types.rb', line 193

def typedclass()       Bytes32;  end

#typedclass_nameObject



192
# File 'lib/solidity/typed/metatypes/types.rb', line 192

def typedclass_name()  Bytes32.name; end

#zeroObject Also known as: new_zero



196
# File 'lib/solidity/typed/metatypes/types.rb', line 196

def zero() Bytes32.zero; end