module Schedule

Public Class Methods

load(path) click to toggle source

Load schedule from definition file.

# File lib/schedule.rb, line 6
def self.load(path)
  context = DSL.new
  context.instance_eval(File.read(path), path)
  context.rules
end