Module: IceCube

Defined in:
lib/ice_cube.rb,
lib/ice_cube/rule.rb,
lib/ice_cube/version.rb,
lib/ice_cube/schedule.rb,
lib/ice_cube/time_util.rb,
lib/ice_cube/validated_rule.rb,
lib/ice_cube/validations/day.rb,
lib/ice_cube/rules/daily_rule.rb,
lib/ice_cube/validations/lock.rb,
lib/ice_cube/rules/hourly_rule.rb,
lib/ice_cube/rules/weekly_rule.rb,
lib/ice_cube/rules/yearly_rule.rb,
lib/ice_cube/validations/count.rb,
lib/ice_cube/validations/until.rb,
lib/ice_cube/rules/monthly_rule.rb,
lib/ice_cube/rules/minutely_rule.rb,
lib/ice_cube/rules/secondly_rule.rb,
lib/ice_cube/errors/zero_interval.rb,
lib/ice_cube/builders/hash_builder.rb,
lib/ice_cube/builders/ical_builder.rb,
lib/ice_cube/errors/count_exceeded.rb,
lib/ice_cube/errors/until_exceeded.rb,
lib/ice_cube/single_occurrence_rule.rb,
lib/ice_cube/builders/string_builder.rb,
lib/ice_cube/validations/day_of_week.rb,
lib/ice_cube/validations/day_of_year.rb,
lib/ice_cube/validations/hour_of_day.rb,
lib/ice_cube/validations/day_of_month.rb,
lib/ice_cube/validations/month_of_year.rb,
lib/ice_cube/validations/schedule_lock.rb,
lib/ice_cube/validations/daily_interval.rb,
lib/ice_cube/validations/minute_of_hour.rb,
lib/ice_cube/validations/hourly_interval.rb,
lib/ice_cube/validations/weekly_interval.rb,
lib/ice_cube/validations/yearly_interval.rb,
lib/ice_cube/validations/monthly_interval.rb,
lib/ice_cube/validations/second_of_minute.rb,
lib/ice_cube/validations/minutely_interval.rb,
lib/ice_cube/validations/secondly_interval.rb

Defined Under Namespace

Modules: TimeUtil, Validations Classes: CountExceeded, DailyRule, HashBuilder, HourlyRule, IcalBuilder, MinutelyRule, MonthlyRule, Rule, Schedule, SecondlyRule, SingleOccurrenceRule, StringBuilder, UntilExceeded, ValidatedRule, WeeklyRule, YearlyRule, ZeroInterval

Constant Summary collapse

ONE_SECOND =

Define some useful constants

1
ONE_MINUTE =
ONE_SECOND * 60
ONE_HOUR =
ONE_MINUTE * 60
ONE_DAY =
ONE_HOUR   * 24
ONE_WEEK =
ONE_DAY    * 7
TO_S_TIME_FORMAT =

Formatting

'%B %e, %Y'
VERSION =
'0.8.0'

Class Method Summary collapse

Class Method Details

.use_psych?Boolean

Returns:

  • (Boolean)


76
77
78
# File 'lib/ice_cube.rb', line 76

def self.use_psych?
  @use_psych ||= defined?(Psych) && defined?(Psych::VERSION)
end