Exception: Shale::DefaultNotCallableError Private

Inherits:
ShaleError
  • Object
show all
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

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

Parameters:

  • record (String)
  • attribute (String)


85
86
87
# File 'lib/shale/error.rb', line 85

def initialize(record, attribute)
  super("'#{attribute}' default is not callable for #{record}.")
end