Class: Dreamcatch::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/dreamcatch/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/dreamcatch/error.rb', line 3

def description
  @description
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/dreamcatch/error.rb', line 9

def to_s
  @description
end