Class: Types::Typed::IntType

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



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

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

Instance Method Details

#==(other) ⇒ Object



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

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

#abiObject

note abi requires uint256!!! (not uint) todo/check - rename to sig or abisig or selector or ???



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

def abi() 'int256'; end

#formatObject Also known as: to_s



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

def format() 'int'; end

#mut?Boolean

Returns:

  • (Boolean)


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

def mut?() false; end

#new(initial_value) ⇒ Object



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

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

#typedclassObject



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

def typedclass()       Int;  end

#typedclass_nameObject



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

def typedclass_name()  Int.name; end

#zeroObject Also known as: new_zero



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

def zero() Int.zero; end