lib/representable/binding.rb in representable-2.4.0.rc3 vs lib/representable/binding.rb in representable-2.4.0.rc4

- old
+ new

@@ -39,12 +39,13 @@ end end include Deprecatable module EvaluateOption - def evaluate_option(name, input=nil, options={}) + def evaluate_option(name, input, options) proc = self[name] - proc.(send(:exec_context, options), options) # from Uber::Options::Value. # NOTE: this can also be the Proc object if it's not wrapped by Uber:::Value. + # puts "@@@@@ #{self.inspect}, #{name}...... #{self[name]}" + proc.(send(:exec_context, options), options.merge(user_options: options[:options][:user_options], input: input)) # from Uber::Options::Value. # NOTE: this can also be the Proc object if it's not wrapped by Uber:::Value. end end # include EvaluateOption def [](name)