Exception: CodeRay::NotStreamableError
- Inherits:
-
Exception
- Object
- Exception
- CodeRay::NotStreamableError
- Defined in:
- lib/coderay.rb
Overview
This Exception is raised when you try to stream with something that is not capable of streaming.
Instance Method Summary collapse
-
#initialize(obj) ⇒ NotStreamableError
constructor
A new instance of NotStreamableError.
- #to_s ⇒ Object
Constructor Details
#initialize(obj) ⇒ NotStreamableError
Returns a new instance of NotStreamableError.
297 298 299 |
# File 'lib/coderay.rb', line 297 def initialize obj @obj = obj end |
Instance Method Details
#to_s ⇒ Object
301 302 303 |
# File 'lib/coderay.rb', line 301 def to_s '%s is not Streamable!' % @obj.class end |