Exception: Konstructor::DeclaringInheritedError

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

Overview

Raised if declaring inherited method as constructor.

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DeclaringInheritedError

Returns a new instance of DeclaringInheritedError.



18
19
20
21
# File 'lib/konstructor/exceptions.rb', line 18

def initialize(name)
  super "You are declaring an inherited method '#{name}' as konstructor, "
        "this is not allowed."
end