module IceCube

Constants

ONE_DAY
ONE_HOUR
ONE_MINUTE
ONE_SECOND

Define some useful constants

ONE_WEEK
VERSION

Public Class Methods

compatibility() click to toggle source

Retain backwards compatibility for schedules exported from older versions This represents the version number, 11 = 0.11, 1.0 will be 100

# File lib/ice_cube.rb, line 83
def self.compatibility
  @compatibility ||= IceCube::VERSION.scan(/\d+/)[0..1].join.to_i
end
compatibility=(version) click to toggle source
# File lib/ice_cube.rb, line 87
def self.compatibility=(version)
  @compatibility = version
end
to_s_time_format() click to toggle source

Defines the format used by IceCube when printing out Schedule#to_s. Defaults to ‘%B %e, %Y’

# File lib/ice_cube.rb, line 72
def self.to_s_time_format
  IceCube::I18n.t("ice_cube.date.formats.default")
end
to_s_time_format=(format) click to toggle source

Sets the format used by IceCube when printing out Schedule#to_s.

# File lib/ice_cube.rb, line 77
def self.to_s_time_format=(format)
  @to_s_time_format = format
end