Remove Task::DSL.evaluate method
This commit is contained in:
@@ -3,12 +3,6 @@ module Producer
|
||||
class Task
|
||||
class DSL
|
||||
class << self
|
||||
def evaluate(name, env, &block)
|
||||
dsl = new(&block)
|
||||
dsl.evaluate(env)
|
||||
Task.new(name, dsl.actions, dsl.condition)
|
||||
end
|
||||
|
||||
def define_action(keyword, klass)
|
||||
define_method(keyword) do |*args|
|
||||
@actions << klass.new(@env, *args)
|
||||
|
Reference in New Issue
Block a user