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



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

#abiObject

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

#formatObject Also known as: to_s



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

def format() 'int'; end

#mut?Boolean

Returns:

  • (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

#typedclassObject



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

def typedclass()       Int;  end

#typedclass_nameObject



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

def typedclass_name()  Int.name; end

#zeroObject Also known as: new_zero



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

def zero() Int.zero; end