Exception: Konstructor::IncludingInModuleError

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

Overview

Raised if konstructor is used inside module.

Instance Method Summary collapse

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