Class: Numeric

Inherits:
Object
  • Object
show all
Defined in:
lib/conquer/core_ext/numeric.rb

Instance Method Summary collapse

Instance Method Details

#hoursObject



2
3
4
# File 'lib/conquer/core_ext/numeric.rb', line 2

def hours
  self * 60.minutes
end

#millisecondsObject



14
15
16
# File 'lib/conquer/core_ext/numeric.rb', line 14

def milliseconds
  self.to_f / 1000
end

#minutesObject



6
7
8
# File 'lib/conquer/core_ext/numeric.rb', line 6

def minutes
  self * 60.seconds
end

#secondsObject



10
11
12
# File 'lib/conquer/core_ext/numeric.rb', line 10

def seconds
  self
end