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)


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

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