Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/timeunits.rb,
lib/timeunits-0.0.2.rb

Defined Under Namespace

Modules: DiffUnits, Units

Instance Method Summary collapse

Instance Method Details

#-(other) ⇒ Object



33
34
35
36
37
# File 'lib/timeunits.rb', line 33

def - other
  ret = __delta__ other
  ret.extend DiffUnits
  ret
end

#__delta__Object



32
33
34
35
36
# File 'lib/timeunits.rb', line 32

def - other
  ret = __delta__ other
  ret.extend DiffUnits
  ret
end