Sha256: ea519b605971b9ce744a78b9ed0f3363c8ab4649d2b8372c88a5c646cceb231f
Contents?: true
Size: 916 Bytes
Versions: 1
Compression:
Stored size: 916 Bytes
Contents
module ByStar module Directional def before(*args) with_by_star_options(*args) do |time, options| scope = by_star_scope(options) field = by_star_start_field(options) time = ByStar::Normalization.time(time) by_star_before_query(scope, field, time) end end alias_method :before_now, :before def after(*args) with_by_star_options(*args) do |time, options| scope = by_star_scope(options) field = by_star_start_field(options) time = ByStar::Normalization.time(time) by_star_after_query(scope, field, time) end end alias_method :after_now, :after def oldest(*args) with_by_star_options(*args) do |time, options| oldest_query(options) end end def newest(*args) with_by_star_options(*args) do |time, options| newest_query(options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
by_star-3.0.0 | lib/by_star/directional.rb |