Exception: Quill::NoFactoryError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/quill/no_factory_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ NoFactoryError

Returns a new instance of NoFactoryError.



3
4
5
# File 'lib/quill/no_factory_error.rb', line 3

def initialize(klass)
  @klass = klass
end

Instance Method Details

#messageObject



7
8
9
# File 'lib/quill/no_factory_error.rb', line 7

def message
  "The class #{klass.name} cannot be registered with the container, as it does not extend Quill::DSL."
end