Method: Representable::Binding::Map#call

Defined in:
lib/representable/binding.rb

#call(method, options) ⇒ Object



11
12
13
14
15
16
# File 'lib/representable/binding.rb', line 11

def call(method, options)
  each do |bin|
    options[:binding] = bin # this is so much faster than options.merge().
    bin.send(method, options)
  end
end