Class: Timing::NaturalTimeLanguage::MinuteInterval

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



199
200
201
# File 'lib/timing/natural_time_language_interpreters.rb', line 199

def beginning_of(time)
  raise 'Not supported'
end

#end_of(time) ⇒ Object



203
204
205
# File 'lib/timing/natural_time_language_interpreters.rb', line 203

def end_of(time)
  raise 'Not supported'
end

#time_after(time, number) ⇒ Object



195
196
197
# File 'lib/timing/natural_time_language_interpreters.rb', line 195

def time_after(time, number)
  time + Interval.minutes(number)
end

#time_ago(time, number) ⇒ Object



191
192
193
# File 'lib/timing/natural_time_language_interpreters.rb', line 191

def time_ago(time, number)
  time - Interval.minutes(number)
end