Class: Timing::NaturalTimeLanguage::MonthInterval

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/timing/natural_time_language_interpreters.rb

Instance Method Summary collapse

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