Exception: DeprecatedError
- Inherits:
-
Exception
- Object
- Exception
- DeprecatedError
- Defined in:
- lib/deprecated.rb
Overview
This is the class of the errors that the ‘Deprecate’ module will throw if the action type is set to ‘:throw’.
See Deprecate.set_action for more information.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ DeprecatedError
constructor
A new instance of DeprecatedError.
Constructor Details
#initialize(msg = nil) ⇒ DeprecatedError
Returns a new instance of DeprecatedError.
157 158 159 |
# File 'lib/deprecated.rb', line 157 def initialize(msg=nil) @message = msg end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
156 157 158 |
# File 'lib/deprecated.rb', line 156 def @message end |