Class: Lab42::Core::Fm
- Inherits:
- BasicObject
- Defined in:
- lib/lab42/core/fn/basic_object.rb
Overview
class Fn
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &blk) ⇒ Object (private)
27 28 29 30 31 32 |
# File 'lib/lab42/core/fn/basic_object.rb', line 27 def method_missing *args, &blk m = @source.instance_method args.first -> receiver, *a, &b do m.bind( receiver ).(*(args[1..-1]+a), &(blk||b)) end end |