Flowdock
method

respond_to

Importance_0
v2.0.3 - Show latest stable - 0 notes - Class: ActiveResource::HttpMock
respond_to(pairs = {}) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activeresource/lib/active_resource/http_mock.rb, line 31
      def respond_to(pairs = {})
        reset!
        pairs.each do |(path, response)|
          responses[path] = response
        end

        if block_given?
          yield Responder.new(responses)
        else
          Responder.new(responses)
        end
      end
Register or log in to add new notes.