Exception: Konstructor::IncludeInModuleError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/konstructor/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(base) ⇒ IncludeInModuleError

Returns a new instance of IncludeInModuleError.



11
12
13
14
# File 'lib/konstructor/exceptions.rb', line 11

def initialize(base)
  super "Konstructor can't be included in module '#{base.name}' directly, " +
        "please, use ActiveSupport::Concern or included hook directly."
end