Class: Types::Typed::IntType
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
244
|
# File 'lib/solidity/typed/metatypes/types.rb', line 244
def self.instance() @instance ||= new; end
|
Instance Method Details
#==(other) ⇒ Object
254
|
# File 'lib/solidity/typed/metatypes/types.rb', line 254
def ==(other) other.is_a?( IntType ); end
|
#abi ⇒ Object
note abi requires uint256!!! (not uint) todo/check - rename to sig or abisig or selector or ???
251
|
# File 'lib/solidity/typed/metatypes/types.rb', line 251
def abi() 'int256'; end
|
246
|
# File 'lib/solidity/typed/metatypes/types.rb', line 246
def format() 'int'; end
|
#mut? ⇒ Boolean
260
|
# File 'lib/solidity/typed/metatypes/types.rb', line 260
def mut?() false; end
|
#new(initial_value) ⇒ Object
263
|
# File 'lib/solidity/typed/metatypes/types.rb', line 263
def new( initial_value ) Int.new( initial_value ); end
|
#typedclass ⇒ Object
258
|
# File 'lib/solidity/typed/metatypes/types.rb', line 258
def typedclass() Int; end
|
#typedclass_name ⇒ Object
257
|
# File 'lib/solidity/typed/metatypes/types.rb', line 257
def typedclass_name() Int.name; end
|
#zero ⇒ Object
Also known as:
new_zero
261
|
# File 'lib/solidity/typed/metatypes/types.rb', line 261
def zero() Int.zero; end
|