Class: Rubylet::Errors
- Inherits:
-
Object
- Object
- Rubylet::Errors
- Defined in:
- lib/rubylet/errors.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#close ⇒ Object
Spec says this must never be called.
-
#flush ⇒ Object
A no-op for ServletContext#log.
-
#initialize(context) ⇒ Errors
constructor
A new instance of Errors.
- #puts(obj) ⇒ Object
- #write(str) ⇒ Object
Constructor Details
#initialize(context) ⇒ Errors
Returns a new instance of Errors.
5 6 7 |
# File 'lib/rubylet/errors.rb', line 5 def initialize(context) @context = context end |
Instance Method Details
#close ⇒ Object
Spec says this must never be called
21 |
# File 'lib/rubylet/errors.rb', line 21 def close; end |
#flush ⇒ Object
A no-op for ServletContext#log
18 |
# File 'lib/rubylet/errors.rb', line 18 def flush; end |
#puts(obj) ⇒ Object
9 10 11 |
# File 'lib/rubylet/errors.rb', line 9 def puts(obj) write(obj.to_s) end |
#write(str) ⇒ Object
13 14 15 |
# File 'lib/rubylet/errors.rb', line 13 def write(str) @context.log(str) end |