Class: Types::Typed::TimedeltaType
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
.instance ⇒ Object
289
|
# File 'lib/solidity/typed/metatypes/types.rb', line 289
def self.instance() @instance ||= new; end
|
Instance Method Details
#==(other) ⇒ Object
294
|
# File 'lib/solidity/typed/metatypes/types.rb', line 294
def ==(other) other.is_a?( TimedeltaType ); end
|
291
|
# File 'lib/solidity/typed/metatypes/types.rb', line 291
def format() 'timedelta'; end
|
#mut? ⇒ Boolean
300
|
# File 'lib/solidity/typed/metatypes/types.rb', line 300
def mut?() false; end
|
#new(initial_value) ⇒ Object
303
|
# File 'lib/solidity/typed/metatypes/types.rb', line 303
def new( initial_value ) Timedelta.new( initial_value ); end
|
#typedclass ⇒ Object
298
|
# File 'lib/solidity/typed/metatypes/types.rb', line 298
def typedclass() Timedelta; end
|
#typedclass_name ⇒ Object
297
|
# File 'lib/solidity/typed/metatypes/types.rb', line 297
def typedclass_name() Timedelta.name; end
|
#zero ⇒ Object
Also known as:
new_zero
301
|
# File 'lib/solidity/typed/metatypes/types.rb', line 301
def zero() Timedelta.zero; end
|