Exception: Error
- Inherits:
-
StandardError
- Object
- StandardError
- Error
- Defined in:
- lib/types/error.rb
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
Instance Method Summary collapse
-
#initialize(err) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(err) ⇒ Error
Returns a new instance of Error.
3 4 5 6 |
# File 'lib/types/error.rb', line 3 def initialize(err) @err = err super(err) end |
Instance Attribute Details
#err ⇒ Object (readonly)
Returns the value of attribute err.
2 3 4 |
# File 'lib/types/error.rb', line 2 def err @err end |