Exception: Konstructor::ReservedNameError
- Defined in:
- lib/konstructor/exceptions.rb
Overview
Raised if reserved names new
or initialize
are used in declaration.
Instance Method Summary collapse
-
#initialize(name) ⇒ ReservedNameError
constructor
A new instance of ReservedNameError.
Constructor Details
#initialize(name) ⇒ ReservedNameError
Returns a new instance of ReservedNameError.
10 11 12 13 |
# File 'lib/konstructor/exceptions.rb', line 10 def initialize(name) super "Custom constructor can't have name '#{name}', " "it is reserved for default constructor." end |