Method: TimeCalc::Value#for

Defined in:
lib/time_calc/value.rb

#for(span, unit) ⇒ Sequence

Produces Sequence from this value to ‘this + <span units>`

Parameters:

  • span (Integer)
  • unit (Symbol)

Returns:



224
225
226
# File 'lib/time_calc/value.rb', line 224

def for(span, unit)
  to(self.+(span, unit))
end