lib/translated_collection/wrapper.rb
def _rewrap_array(result)
      if @wrap_results
        newcoll = @collection.class.new(result)
        self.class.new(newcoll, @wrapfunc_in, @wrapfunc_out)
      else
        @collection.class.new(result.map(&@wrapfunc_out))
      end
    end
def _rewrap_array(result)
      if @wrap_results
        newcoll = @collection.class.new(result)
        self.class.new(newcoll, @wrapfunc_in, @wrapfunc_out)
      else
        @collection.class.new(result.map(&@wrapfunc_out))
      end
    end
def _rewrap_array ( result ) if @wrap_results newcoll = @collection . class . new ( result ) self . class . new ( newcoll , @wrapfunc_in , @wrapfunc_out ) else @collection . class . new ( result . map ( @wrapfunc_out ) ) end end
Used to wrap results from various Enumerable methods that are defined
 to return an array
Used to wrap results from various Enumerable methods that are defined to return an array