Class: ErrorObject
- Inherits:
-
Object
show all
- Defined in:
- lib/get_freaky/error_object.rb
Instance Method Summary
collapse
Constructor Details
#initialize(message) ⇒ ErrorObject
Returns a new instance of ErrorObject.
2
3
4
|
# File 'lib/get_freaky/error_object.rb', line 2
def initialize(message)
@message = message
end
|
Instance Method Details
#to_s ⇒ Object
10
11
12
|
# File 'lib/get_freaky/error_object.rb', line 10
def to_s
"Error: #{@message}"
end
|
#valid? ⇒ Boolean
6
7
8
|
# File 'lib/get_freaky/error_object.rb', line 6
def valid?
false
end
|