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
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
|
145
|
# File 'lib/solidity/typed/metatypes/types.rb', line 145
def format() 'address'; end
|
#mut? ⇒ 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
|
#typedclass ⇒ Object
151
|
# File 'lib/solidity/typed/metatypes/types.rb', line 151
def typedclass() Address; end
|
#typedclass_name ⇒ Object
150
|
# File 'lib/solidity/typed/metatypes/types.rb', line 150
def typedclass_name() Address.name; end
|
#zero ⇒ Object
Also known as:
new_zero
154
|
# File 'lib/solidity/typed/metatypes/types.rb', line 154
def zero() Address.zero; end
|