class Schedule::DSL

Attributes

rules[R]

Public Class Methods

new() click to toggle source
# File lib/schedule.rb, line 76
def initialize
  @rules = RuleList.new
end

Public Instance Methods

rule(condition, &block) click to toggle source
# File lib/schedule.rb, line 80
def rule(condition, &block)
  self.rules << Rule.new(condition, &block)
end