Class: Enumerable::MultiSender
Instance Method Summary collapse
- 
  
    
      #initialize(enumerable, method)  ⇒ MultiSender 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MultiSender. 
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(enumerable, method) ⇒ MultiSender
Returns a new instance of MultiSender.
| 40 41 42 43 | # File 'lib/hobo_support/enumerable.rb', line 40 def initialize(enumerable, method) @enumerable = enumerable @method = method end | 
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
| 45 46 47 | # File 'lib/hobo_support/enumerable.rb', line 45 def method_missing(name, *args, &block) @enumerable.send(@method) { |x| x.send(name, *args, &block) } end |