Methods
Public Class methods
[ show source ]
# File actionpack/lib/action_controller/rack_lint_patch.rb, line 7 7: def self.included(base) 8: base.send :alias_method, :each, :each_with_hack 9: end
Public Instance methods
[ show source ]
# File actionpack/lib/action_controller/rack_lint_patch.rb, line 11
11: def each_with_hack
12: @closed = false
13:
14: @body.each { |part|
15: assert("Body yielded non-string value #{part.inspect}") {
16: part.kind_of?(String)
17: }
18: yield part
19: }
20:
21: if @body.respond_to?(:to_path)
22: assert("The file identified by body.to_path does not exist") {
23: ::File.exist? @body.to_path
24: }
25: end
26: end