Module: RescueEach::CoreExt::Enumerable

Defined in:
lib/rescue_each.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/rescue_each.rb', line 142

def self.included(klass)
  klass.class_eval do
    
    def rescue_map(*args, &block)
      rescue_send :map, *args, &block
    end
    
    def rescue_each_with_index(*args, &block)
      rescue_send :each_with_index, *args, &block
    end
  
  end
end