Implement `macro' recipe keyword

This commit is contained in:
Thibault Jouan committed 2013-12-20 23:19:16 +00:00
1 parent 43a781dc78
commit e8be44d1f0
7 files changed
+93 -13

No files matched your search

+2 -2
View File
@@ -23,9 +23,9 @@ module Producer
@condition = true
end
def evaluate(env)
def evaluate(env, *args)
@env = env
instance_eval &@block
instance_exec *args, &@block
end
def condition(&block)