Exception: Shale::DefaultNotCallableError Private
- Inherits:
-
ShaleError
- Object
- StandardError
- ShaleError
- Shale::DefaultNotCallableError
- Defined in:
- lib/shale/error.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Error for trying to assign not callable object as an attribute’s default
Instance Method Summary collapse
-
#initialize(record, attribute) ⇒ DefaultNotCallableError
constructor
private
Initialize error object.
Constructor Details
#initialize(record, attribute) ⇒ DefaultNotCallableError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize error object
85 86 87 |
# File 'lib/shale/error.rb', line 85 def initialize(record, attribute) super("'#{attribute}' default is not callable for #{record}.") end |