Module: ByStar::Directional

Included in:
Base
Defined in:
lib/by_star/directional.rb

Instance Method Summary collapse

Instance Method Details

#after(*args) ⇒ Object Also known as: after_now



13
14
15
16
17
18
# File 'lib/by_star/directional.rb', line 13

def after(*args)
  with_by_star_options(*args) do |time, options|
    time = ByStar::Normalization.time(time)
    after_query(time, options)
  end
end

#before(*args) ⇒ Object Also known as: before_now



5
6
7
8
9
10
# File 'lib/by_star/directional.rb', line 5

def before(*args)
  with_by_star_options(*args) do |time, options|
    time = ByStar::Normalization.time(time)
    before_query(time, options)
  end
end