lib/yaks/util.rb in yaks-0.11.0 vs lib/yaks/util.rb in yaks-0.12.0
- old
+ new
@@ -44,10 +44,10 @@
#
# @param [Object|Proc] maybe_proc
# A proc or a plain value
# @param [Object] context
# (optional) A context used to instance_eval the proc
- def Resolve(maybe_proc, context = nil) # rubocop:disable Style/MethodName
+ def Resolve(maybe_proc, context = nil) # rubocop:disable Style/MethodName
if maybe_proc.respond_to?(:to_proc) && !maybe_proc.instance_of?(Symbol)
if context
if maybe_proc.arity > 0
context.instance_eval(&maybe_proc)
else