module Montrose

Constants

ConfigurationError
Error
SerializationError
VERSION

Attributes

enable_deprecated_between_masking[R]

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

Public Class Methods

enable_deprecated_between_masking=(value) click to toggle source
# File lib/montrose.rb, line 59
def enable_deprecated_between_masking=(value)
  warn "[DEPRECATION] Montrose.enable_deprecated_between_masking is deprecated and will be removed in a future version."
  @enable_deprecated_between_masking = value
end
enable_deprecated_between_masking?() click to toggle source
# File lib/montrose.rb, line 64
def enable_deprecated_between_masking?
  result = !!enable_deprecated_between_masking
  if result
    warn "[DEPRECATION] Legacy Montrose.between masking behavior is deprecated. Please use Montrose.covering instead to retain this behavior."
  end
  result
end
r(options = {})
Alias for: recurrence
recurrence(options = {}) click to toggle source

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

@param options [Hash] recurrence options

@example

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

@return [Montrose::Recurrence]

# File lib/montrose.rb, line 50
def recurrence(options = {})
  branch(options)
end
Also aliased as: r