Class: Timing::NaturalTimeLanguage::YearInterval

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



289
290
291
# File 'lib/timing/natural_time_language_interpreters.rb', line 289

def beginning_of(time)
  time.beginning_of_year
end

#end_of(time) ⇒ Object



293
294
295
# File 'lib/timing/natural_time_language_interpreters.rb', line 293

def end_of(time)
  time.end_of_year
end

#time_after(time, number) ⇒ Object



285
286
287
# File 'lib/timing/natural_time_language_interpreters.rb', line 285

def time_after(time, number)
  time.years_after(number)
end

#time_ago(time, number) ⇒ Object



281
282
283
# File 'lib/timing/natural_time_language_interpreters.rb', line 281

def time_ago(time, number)
  time.years_ago(number)
end