Module: Montrose

Extended by:
Chainable
Defined in:
lib/montrose.rb,
lib/montrose/rule.rb,
lib/montrose/clock.rb,
lib/montrose/stack.rb,
lib/montrose/utils.rb,
lib/montrose/errors.rb,
lib/montrose/options.rb,
lib/montrose/version.rb,
lib/montrose/schedule.rb,
lib/montrose/chainable.rb,
lib/montrose/frequency.rb,
lib/montrose/recurrence.rb,
lib/montrose/rule/after.rb,
lib/montrose/rule/total.rb,
lib/montrose/rule/before.rb,
lib/montrose/rule/except.rb,
lib/montrose/frequency/daily.rb,
lib/montrose/frequency/hourly.rb,
lib/montrose/frequency/weekly.rb,
lib/montrose/frequency/yearly.rb,
lib/montrose/rule/day_of_week.rb,
lib/montrose/rule/day_of_year.rb,
lib/montrose/rule/hour_of_day.rb,
lib/montrose/rule/time_of_day.rb,
lib/montrose/frequency/monthly.rb,
lib/montrose/rule/day_of_month.rb,
lib/montrose/rule/week_of_year.rb,
lib/montrose/frequency/minutely.rb,
lib/montrose/frequency/secondly.rb,
lib/montrose/rule/month_of_year.rb,
lib/montrose/rule/nth_day_matcher.rb,
lib/montrose/rule/nth_day_of_year.rb,
lib/montrose/rule/nth_day_of_month.rb,
lib/montrose/refinements/array_concat.rb

Defined Under Namespace

Modules: Chainable, Refinements, Rule, Utils Classes: Clock, Frequency, Options, Recurrence, Schedule, Stack

Constant Summary collapse

Error =
Class.new(StandardError)
ConfigurationError =
Class.new(Error)
SerializationError =
Class.new(Error)
VERSION =
"0.6.0"

Class Method Summary collapse

Methods included from Chainable

at, between, branch, daily, day_of_month, day_of_week, day_of_year, default_options, every, except, hour_of_day, hourly, merge, minutely, month_of_year, monthly, on, starts, total, until, week_of_year, weekly, yearly

Class Method Details

.recurrence(options = {}) ⇒ Montrose::Recurrence Also known as: r

Create a new recurrence from given options An alias to Montrose::Recurrence.new

Examples:

Montrose.recurrence(every: :day)
Montrose.r(every: :day)

34
35
36
# File 'lib/montrose.rb', line 34

def recurrence(options = {})
  branch(options)
end