Class: Integer

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

Overview

Adds syntactic suger for seconds

Instance Method Summary collapse

Instance Method Details

#secondInteger

Returns Plain number, actually does nothing.

Examples:

1.second => 1

Returns:

  • (Integer)

    Plain number, actually does nothing



100
101
102
# File 'lib/artoo/utility.rb', line 100

def second
  return self
end

#secondsInteger

Returns Plain number, actually does nothing.

Examples:

20.seconds => 20

Returns:

  • (Integer)

    Plain number, actually does nothing



94
95
96
# File 'lib/artoo/utility.rb', line 94

def seconds
  return self
end