Exception: Konstructor::ReservedNameError
- Inherits:
-
StandardError
- Object
- StandardError
- Konstructor::ReservedNameError
- Defined in:
- lib/konstructor/exceptions.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ ReservedNameError
constructor
A new instance of ReservedNameError.
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 |