Exception: Stella::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/stella/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(obj = nil) ⇒ Error

Returns a new instance of Error.



5
# File 'lib/stella/exceptions.rb', line 5

def initialize(obj=nil); @obj = obj; end

Instance Method Details

#messageObject



6
# File 'lib/stella/exceptions.rb', line 6

def message; "#{self.class}: #{@obj}"; end