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, ) each do |bin| [:binding] = bin # this is so much faster than options.merge(). bin.send(method, ) end end |