class TimeBoots::Jump

Attributes

amount[R]
step[R]

Public Class Methods

new(step, amount) click to toggle source
# File lib/time_boots/jump.rb, line 4
def initialize(step, amount)
  @step, @amount = step, amount
  @boot = Boot.get(step)
end

Public Instance Methods

==(other) click to toggle source
# File lib/time_boots/jump.rb, line 22
def ==(other)
  step == other.step && amount == other.amount
end
after(tm = Time.now) click to toggle source
# File lib/time_boots/jump.rb, line 15
def after(tm = Time.now)
  @boot.advance(tm, amount)
end
Also aliased as: from
ago(tm = Time.now)
Alias for: before
before(tm = Time.now) click to toggle source
# File lib/time_boots/jump.rb, line 11
def before(tm = Time.now)
  @boot.decrease(tm, amount)
end
Also aliased as: ago
from(tm = Time.now)
Alias for: after
inspect() click to toggle source
# File lib/time_boots/jump.rb, line 26
def inspect
  '#<%s(%s): %+i>' % [self.class, step, amount]
end