Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#daysObject



186
187
188
# File 'lib/universa_tools/commons.rb', line 186

def days
  self*86400
end

#hoursObject



182
183
184
# File 'lib/universa_tools/commons.rb', line 182

def hours
  self*3600
end

#minutesObject



178
179
180
# File 'lib/universa_tools/commons.rb', line 178

def minutes
  self*60
end

#secondsObject



174
175
176
# File 'lib/universa_tools/commons.rb', line 174

def seconds
  self
end