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



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

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

Instance Method Details

#==(other) ⇒ Object



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

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

#formatObject Also known as: to_s



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

def format() 'address'; end

#mut?Boolean

Returns:

  • (Boolean)


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

def mut?() false; end

#new(initial_value) ⇒ Object



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

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

#typedclassObject



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

def typedclass()       Address;  end

#typedclass_nameObject



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

def typedclass_name()  Address.name; end

#zeroObject Also known as: new_zero



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

def zero() Address.zero; end