Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/extra/period.rb
Instance Method Summary collapse
Instance Method Details
#days ⇒ Period
245 246 247 |
# File 'lib/extra/period.rb', line 245 def days Period::make(days: 1) * self end |
#hours ⇒ Period
251 252 253 |
# File 'lib/extra/period.rb', line 251 def hours Period::make(hours: 1) * self end |
#minutes ⇒ Period
257 258 259 |
# File 'lib/extra/period.rb', line 257 def minutes Period::make(minutes: 1) * self end |