Method: RJR::HandlesMethods::ClassMethods#extract_handler_method
- Defined in:
- lib/rjr/util/handles_methods.rb
#extract_handler_method(args) ⇒ Object
Return the handler method matching the argument set
42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/rjr/util/handles_methods.rb', line 42 def extract_handler_method(args) handler = nil if method_defined?(args.last) handler = args.last args.delete_at(-1) else handler = :handle end [handler, args] end |