Class: Types::Typed::AddressType

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



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

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

Instance Method Details

#==(other) ⇒ Object



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

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

#formatObject Also known as: to_s



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

def format() 'address'; end

#mut?Boolean

Returns:

  • (Boolean)


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

def mut?() false; end

#new(initial_value) ⇒ Object



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

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

#typedclassObject



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

def typedclass()       Address;  end

#typedclass_nameObject



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

def typedclass_name()  Address.name; end

#zeroObject Also known as: new_zero



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

def zero() Address.zero; end