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



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

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

Instance Method Details

#==(other) ⇒ Object



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

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

#abiObject

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



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

def abi() 'uint256'; end

#formatObject Also known as: to_s



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

def format() 'uint'; end

#mut?Boolean

Returns:

  • (Boolean)


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

def mut?() false; end

#new(initial_value) ⇒ Object



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

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

#typedclassObject



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

def typedclass()       UInt;  end

#typedclass_nameObject



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

def typedclass_name()  UInt.name; end

#zeroObject Also known as: new_zero



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

def zero() UInt.zero; end