Implement `macro' recipe keyword
This commit is contained in:
1 parent
43a781dc78
commit
e8be44d1f0
7 files changed
+93
-13
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user