Class: Types::Typed::AddressType
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
.instance ⇒ Object
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
|
146
|
# File 'lib/solidity/typed/metatypes/types.rb', line 146
def format() 'address'; end
|
#mut? ⇒ 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
|
#typedclass ⇒ Object
152
|
# File 'lib/solidity/typed/metatypes/types.rb', line 152
def typedclass() Address; end
|
#typedclass_name ⇒ Object
151
|
# File 'lib/solidity/typed/metatypes/types.rb', line 151
def typedclass_name() Address.name; end
|
#zero ⇒ Object
Also known as:
new_zero
155
|
# File 'lib/solidity/typed/metatypes/types.rb', line 155
def zero() Address.zero; end
|