Exception: Konstructor::ReservedNameError

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ReservedNameError

Returns a new instance of ReservedNameError.



4
5
6
7
# File 'lib/konstructor/exceptions.rb', line 4

def initialize(name)
  super "Custom constructor can't have name '#{name}', "
        "it is reserved for default constructor."
end