Class: Dreamcatch::Error
- Inherits:
-
Object
- Object
- Dreamcatch::Error
- Defined in:
- lib/dreamcatch/error.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
Instance Method Summary collapse
-
#initialize(msg) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(msg) ⇒ Error
Returns a new instance of Error.
5 6 7 |
# File 'lib/dreamcatch/error.rb', line 5 def initialize(msg) @description = msg end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/dreamcatch/error.rb', line 3 def description @description end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/dreamcatch/error.rb', line 9 def to_s @description end |