Exception: CodeRay::NotStreamableError

Inherits:
Exception
  • Object
show all
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

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_sObject



301
302
303
# File 'lib/coderay.rb', line 301

def to_s
  '%s is not Streamable!' % @obj.class
end