We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66f1d79 + fc04d86 commit 7e100f2Copy full SHA for 7e100f2
README.md
@@ -43,9 +43,13 @@ With ice_cube, you can specify (in increasing order of precedence):
43
* Recurrence Times - To specifically include in a schedule
44
* Exception Times - To specifically exclude from a schedule
45
46
-Example: Specifying a recurrence with an exception time
+Example: Specifying a recurrence with an exception time. Requires "rails/activesupport" (`gem install 'activesupport'`).
47
+
48
49
```ruby
50
+require 'ice_cube'
51
+require 'active_support/time'
52
53
schedule = IceCube::Schedule.new(now = Time.now) do |s|
54
s.add_recurrence_rule(IceCube::Rule.daily.count(4))
55
s.add_exception_time(now + 1.day)
0 commit comments