Flowdock
method

make_lambda

Importance_1
v4.1.8 - Show latest stable - 0 notes - Class: ActiveSupport::Callbacks::Callback
make_lambda(filter) private

Filters support:

Symbols:: A method to call.
Strings:: Some content to evaluate.
Procs::   A proc to call with the object.
Objects:: An object with a <tt>before_foo</tt> method on it to call.

All of these objects are compiled into methods and handled the same after this point:

Symbols:: Already methods.
Strings:: class_eval'd into methods.
Procs::   using define_method compiled into methods.
Objects::
  a method is created that calls the before_foo method
  on the object.
Show source
Register or log in to add new notes.