Class: Rack::Lint::ErrorWrapper
- Includes:
- Assertion
- Defined in:
- lib/gems/rack-0.9.1/lib/rack/lint.rb
Instance Method Summary collapse
-
#close(*args) ⇒ Object
-
close
must never be called on the error stream.
-
-
#flush ⇒ Object
-
flush
must be called without arguments and must be called in order to make the error appear for sure.
-
-
#initialize(error) ⇒ ErrorWrapper
constructor
A new instance of ErrorWrapper.
-
#puts(str) ⇒ Object
-
puts
must be called with a single argument that responds toto_s
.
-
-
#write(str) ⇒ Object
-
write
must be called with a single argument that is a String.
-
Methods included from Assertion
Constructor Details
#initialize(error) ⇒ ErrorWrapper
Returns a new instance of ErrorWrapper.
284 285 286 |
# File 'lib/gems/rack-0.9.1/lib/rack/lint.rb', line 284 def initialize(error) @error = error end |
Instance Method Details
#close(*args) ⇒ Object
-
close
must never be called on the error stream.
306 307 308 |
# File 'lib/gems/rack-0.9.1/lib/rack/lint.rb', line 306 def close(*args) assert("rack.errors#close must not be called") { false } end |
#flush ⇒ Object
-
flush
must be called without arguments and must be called in order to make the error appear for sure.
301 302 303 |
# File 'lib/gems/rack-0.9.1/lib/rack/lint.rb', line 301 def flush @error.flush end |
#puts(str) ⇒ Object
-
puts
must be called with a single argument that responds toto_s
.
289 290 291 |
# File 'lib/gems/rack-0.9.1/lib/rack/lint.rb', line 289 def puts(str) @error.puts str end |