Class: Numeric

Inherits:
Object show all
Defined in:
lib/support/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#daysObject Also known as: day



162
163
164
# File 'lib/support/core_extensions.rb', line 162

def days
  self * 24.hours
end

#hoursObject Also known as: hour



157
158
159
# File 'lib/support/core_extensions.rb', line 157

def hours
  self * 3600
end

#minutesObject Also known as: minute



152
153
154
# File 'lib/support/core_extensions.rb', line 152

def minutes
  self * 60
end