lib/kumogata/post_processing.rb in kumogata-0.4.14 vs lib/kumogata/post_processing.rb in kumogata-0.4.15

- old
+ new

@@ -266,10 +266,14 @@ scope = Object.new scope.instance_variable_set(:@__expected_outputs__, expected_outputs) scope.instance_eval(<<-EOS) + def Ref(name) + $kumogata.options.parameters[name] + end + def Key(name) @__expected_outputs__ << name end ERB.new(#{command.inspect}, nil, #{trim_mode.inspect}).result(binding) @@ -288,9 +292,13 @@ scope = Object.new scope.instance_variable_set(:@__outputs__, outputs) scope.instance_eval(<<-EOS) + def Ref(name) + $kumogata.options.parameters[name] + end + def Key(name) @__outputs__[name] end ERB.new(#{command.inspect}, nil, #{trim_mode.inspect}).result(binding)