module Representable::Binding::EvaluateOption
Public Instance Methods
evaluate_option(name, input, options)
click to toggle source
# File lib/representable/binding.rb, line 61 def evaluate_option(name, input, options) proc = self[name] # puts "@@@@@ #{self.inspect}, #{name}...... #{self[name]}" proc.call(exec_context: send(:exec_context, options), keyword_arguments: 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