Class: Integer

Inherits:
Numeric
  • Object
show all
Defined in:
lib/artoo/utility.rb

Overview

just a bit of syntactic sugar, actually does nothing Example:

20.seconds => 20
1.second => 1

Instance Method Summary collapse

Instance Method Details

#secondObject



36
37
38
# File 'lib/artoo/utility.rb', line 36

def second
  return self
end

#secondsObject



32
33
34
# File 'lib/artoo/utility.rb', line 32

def seconds
  return self
end