Implement `test_macro' recipe keyword

This commit is contained in:
Thibault Jouan
2014-06-02 10:49:05 +00:00
parent 18b835b10e
commit 3c46c5bc61
9 changed files with 197 additions and 15 deletions

View File

@@ -2,9 +2,9 @@ module Producer
module Core
class Condition
class << self
def evaluate(env, &block)
def evaluate(env, *args, &block)
dsl = DSL.new(env, &block)
return_value = dsl.evaluate
return_value = dsl.evaluate *args
Condition.new(dsl.tests, return_value)
end
end