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
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
|
290
|
# File 'lib/solidity/typed/metatypes/types.rb', line 290
def format() 'timedelta'; end
|
#mut? ⇒ 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
|
#typedclass ⇒ Object
297
|
# File 'lib/solidity/typed/metatypes/types.rb', line 297
def typedclass() Timedelta; end
|
#typedclass_name ⇒ Object
296
|
# File 'lib/solidity/typed/metatypes/types.rb', line 296
def typedclass_name() Timedelta.name; end
|
#zero ⇒ Object
Also known as:
new_zero
300
|
# File 'lib/solidity/typed/metatypes/types.rb', line 300
def zero() Timedelta.zero; end
|