Parent

Class Index [+]

Quicksearch

Rack::BodyProxy

Public Class Methods

new(body, &block) click to toggle source
   # File lib/rack/body_proxy.rb, line 3
3:     def initialize(body, &block)
4:       @body, @block, @closed = body, block, false
5:     end

Public Instance Methods

close() click to toggle source
    # File lib/rack/body_proxy.rb, line 11
11:     def close
12:       return if @closed
13:       @closed = true
14:       begin
15:         @body.close if @body.respond_to? :close
16:       ensure
17:         @block.call
18:       end
19:     end
closed?() click to toggle source
    # File lib/rack/body_proxy.rb, line 21
21:     def closed?
22:       @closed
23:     end
method_missing(*args, &block) click to toggle source
    # File lib/rack/body_proxy.rb, line 25
25:     def method_missing(*args, &block)
26:       @body.__send__(*args, &block)
27:     end
respond_to?(*args) click to toggle source
   # File lib/rack/body_proxy.rb, line 7
7:     def respond_to?(*args)
8:       super or @body.respond_to?(*args)
9:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.