lib/openwfe/util/dollar.rb in openwferu-0.9.4 vs lib/openwfe/util/dollar.rb in openwferu-0.9.5
- old
+ new
@@ -171,13 +171,26 @@
"functions are not yet implemented"
end
def call_ruby (ruby_code)
- binding = nil
- binding = @flow_expression.get_binding if @flow_expression
+ #binding = nil
+ #binding = @flow_expression.get_binding if @flow_expression
+ #eval(ruby_code, binding).to_s
- eval(ruby_code, binding).to_s
+ wi = @workitem
+ workitem = @workitem
+ if @flow_expression
+ fexp = @flow_expression
+ flow_expression = @flow_expression
+ fei = @flow_expression.fei
+ end
+ #
+ # some simple notations made available to ${ruby:...}
+ # notations
+
+ #eval(ruby_code, binding).to_s
+ eval(ruby_code).to_s
end
end
end