lib/trailblazer/option.rb in trailblazer-context-0.1.1 vs lib/trailblazer/option.rb in trailblazer-context-0.1.2
- old
+ new
@@ -31,10 +31,10 @@
call!(proc, *args, &block)
end
# Make the context's instance method a "lambda" and reuse #call!.
# @private
- def self.evaluate_method(proc, *args, exec_context:raise, **flow_options, &block)
+ def self.evaluate_method(proc, *args, exec_context:raise("No :exec_context given."), **flow_options, &block)
call!(exec_context.method(proc), *args, &block)
end
# Returns a {Proc} that, when called, invokes the `proc` argument with keyword arguments.
# This is known as "step (call) interface".