Exception: Konstructor::IncludingInModuleError
- Defined in:
- lib/konstructor/exceptions.rb
Overview
Raised if konstructor
is used inside module.
Instance Method Summary collapse
-
#initialize(base) ⇒ IncludingInModuleError
constructor
A new instance of IncludingInModuleError.
Constructor Details
#initialize(base) ⇒ IncludingInModuleError
Returns a new instance of IncludingInModuleError.
26 27 28 29 |
# File 'lib/konstructor/exceptions.rb', line 26 def initialize(base) super "Konstructor can't be included in module '#{base.name}' directly, " + "please, use ActiveSupport::Concern or standard included hook." end |