Exception: RicException

Inherits:
Exception
  • Object
show all
Defined in:
lib/classes/debug_ric.rb

Overview

TBD sposta in altro file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str, opts = {}) ⇒ RicException

Returns a new instance of RicException.



175
176
177
178
179
# File 'lib/classes/debug_ric.rb', line 175

def initialize(str,opts={})
  description = str
  opts = options
  super(str)
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



173
174
175
# File 'lib/classes/debug_ric.rb', line 173

def description
  @description
end

#optionsObject (readonly)

Returns the value of attribute options.



173
174
175
# File 'lib/classes/debug_ric.rb', line 173

def options
  @options
end

Instance Method Details

#to_sObject



181
182
183
# File 'lib/classes/debug_ric.rb', line 181

def to_s
  "Ric_Exception (figata direi!): '''#{red description}'''"
end