Exception: Konstructor::IncludeInModuleError
- Inherits:
-
StandardError
- Object
- StandardError
- Konstructor::IncludeInModuleError
- Defined in:
- lib/konstructor/exceptions.rb
Instance Method Summary collapse
-
#initialize(base) ⇒ IncludeInModuleError
constructor
A new instance of IncludeInModuleError.
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 |