Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/cigarette/numeric.rb
Instance Method Summary collapse
- #hour ⇒ Object (also: #hours)
- #minute ⇒ Object (also: #minutes)
- #second ⇒ Object (also: #seconds)
Instance Method Details
#hour ⇒ Object Also known as: hours
11 12 13 |
# File 'lib/cigarette/numeric.rb', line 11 def hour self * 3600 end |
#minute ⇒ Object Also known as: minutes
7 8 9 |
# File 'lib/cigarette/numeric.rb', line 7 def minute self * 60 end |
#second ⇒ Object Also known as: seconds
3 4 5 |
# File 'lib/cigarette/numeric.rb', line 3 def second self end |