Class: Timing::NaturalTimeLanguage::MonthInterval
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Timing::NaturalTimeLanguage::MonthInterval
- Defined in:
- lib/timing/natural_time_language_interpreters.rb
Instance Method Summary collapse
- #beginning_of(time) ⇒ Object
- #end_of(time) ⇒ Object
- #time_after(time, number) ⇒ Object
- #time_ago(time, number) ⇒ Object
Instance Method Details
#beginning_of(time) ⇒ Object
271 272 273 |
# File 'lib/timing/natural_time_language_interpreters.rb', line 271 def beginning_of(time) time.beginning_of_month end |
#end_of(time) ⇒ Object
275 276 277 |
# File 'lib/timing/natural_time_language_interpreters.rb', line 275 def end_of(time) time.end_of_month end |
#time_after(time, number) ⇒ Object
267 268 269 |
# File 'lib/timing/natural_time_language_interpreters.rb', line 267 def time_after(time, number) time.months_after(number) end |
#time_ago(time, number) ⇒ Object
263 264 265 |
# File 'lib/timing/natural_time_language_interpreters.rb', line 263 def time_ago(time, number) time.months_ago(number) end |