Module: FakeWeb::Response

Defined in:
lib/fake_web/response.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#read_body(*args) {|@body| ... } ⇒ Object

Yields:

  • (@body)


4
5
6
7
# File 'lib/fake_web/response.rb', line 4

def read_body(*args, &block)
  yield @body if block_given?
  @body
end