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.
298 299 300 |
# File 'lib/coderay.rb', line 298 def initialize obj @obj = obj end |
Instance Method Details
#to_s ⇒ Object
302 303 304 |
# File 'lib/coderay.rb', line 302 def to_s '%s is not Streamable!' % @obj.class end |