Class: Types::Typed::UIntType

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



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

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

Instance Method Details

#==(other) ⇒ Object



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

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

#abiObject

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



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

def abi() 'uint256'; end

#formatObject Also known as: to_s



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

def format() 'uint'; end

#mut?Boolean

Returns:

  • (Boolean)


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

def mut?() false; end

#new(initial_value) ⇒ Object



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

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

#typedclassObject



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

def typedclass()       UInt;  end

#typedclass_nameObject



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

def typedclass_name()  UInt.name; end

#zeroObject Also known as: new_zero



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

def zero() UInt.zero; end