Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/subtitle_it.rb

Instance Method Summary collapse

Instance Method Details

#reduceObject



22
23
24
# File 'lib/subtitle_it.rb', line 22

def reduce
  self / 10**Math.log10(self).to_i
end