Class: Fixnum

Inherits:
Object
  • Object
show all
Defined in:
lib/em-ucengine/utils.rb

Instance Method Summary collapse

Instance Method Details

#daysObject Also known as: day



2
3
4
# File 'lib/em-ucengine/utils.rb', line 2

def days
  return hours * 24
end

#hoursObject Also known as: hour



6
7
8
# File 'lib/em-ucengine/utils.rb', line 6

def hours
  return mins * 60
end

#minsObject Also known as: min



10
11
12
# File 'lib/em-ucengine/utils.rb', line 10

def mins
  return self * 60
end

#secsObject Also known as: sec



14
15
16
# File 'lib/em-ucengine/utils.rb', line 14

def secs
  return self
end