Class: Types::Typed::TimedeltaType

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



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

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

Instance Method Details

#==(other) ⇒ Object



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

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

#formatObject Also known as: to_s



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

def format() 'timedelta'; end

#mut?Boolean

Returns:

  • (Boolean)


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

def mut?()  false; end

#new(initial_value) ⇒ Object



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

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

#typedclassObject



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

def typedclass()       Timedelta;  end

#typedclass_nameObject



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

def typedclass_name()  Timedelta.name; end

#zeroObject Also known as: new_zero



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

def zero() Timedelta.zero; end