Class: Rack::Lint::ErrorWrapper
- Inherits:
 - 
      Object
      
        
- Object
 - Rack::Lint::ErrorWrapper
 
 
- Includes:
 - Assertion
 
- Defined in:
 - lib/rack/lint.rb
 
Instance Method Summary collapse
- 
  
    
      #close(*args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
- 
closemust never be called on the error stream. 
 - 
 - 
  
    
      #flush  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
- 
flushmust 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 
    
    
  
  
  
  
  
  
  
  
  
    
- 
putsmust be called with a single argument that responds toto_s. 
 - 
 - 
  
    
      #write(str)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
- 
writemust 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.
      509 510 511  | 
    
      # File 'lib/rack/lint.rb', line 509 def initialize(error) @error = error end  | 
  
Instance Method Details
#close(*args) ⇒ Object
- 
closemust never be called on the error stream. 
      531 532 533  | 
    
      # File 'lib/rack/lint.rb', line 531 def close(*args) assert("rack.errors#close must not be called") { false } end  | 
  
#flush ⇒ Object
- 
flushmust be called without arguments and must be called in order to make the error appear for sure. 
      526 527 528  | 
    
      # File 'lib/rack/lint.rb', line 526 def flush @error.flush end  | 
  
#puts(str) ⇒ Object
- 
putsmust be called with a single argument that responds toto_s. 
      514 515 516  | 
    
      # File 'lib/rack/lint.rb', line 514 def puts(str) @error.puts str end  | 
  
#write(str) ⇒ Object
- 
writemust be called with a single argument that is a String. 
      519 520 521 522  | 
    
      # File 'lib/rack/lint.rb', line 519 def write(str) assert("rack.errors#write not called with a String") { str.kind_of? String } @error.write str end  |