Skip to content

NameError: uninitialized constant Rule :: how is this suppose to work?  #286

@brylor

Description

@brylor

Where does Rule come from?

irb(main):023:0> schedule = IceCube::Schedule.new(Time.now) do |s|
irb(main):024:1* s.add_recurrence_rule(Rule.daily.count(3))
irb(main):025:1> s.add_exception_time(now + 1.day)
irb(main):026:1> end
NameError: uninitialized constant Rule
from (irb):24:in block in irb_binding' from /Users/btaylor/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/ice_cube-0.12.1/lib/ice_cube/schedule.rb:24:ininitialize'
from (irb):23:in new' from (irb):23 from /Users/btaylor/.rbenv/versions/2.1.4/bin/irb:11:in

'
irb(main):027:0> Rule
NameError: uninitialized constant Rule
from (irb):27
from /Users/btaylor/.rbenv/versions/2.1.4/bin/irb:11:in `'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions