class Timedelta::SafeInteger

note: safe integer used for coerce dispatch

Public Class Methods

new( value ) click to toggle source
# File lib/units-time/timedelta.rb, line 80
def initialize( value )
  @value = value
end

Public Instance Methods

*( other ) click to toggle source

it's safe to swap left and right for multiplication (it's communicative)

# File lib/units-time/timedelta.rb, line 84
def *( other ) other.*( @value ); end