Exception: Agrippa::MethodRedefinitionError
- Inherits:
-
StandardError
- Object
- StandardError
- Agrippa::MethodRedefinitionError
- Defined in:
- lib/agrippa/methods.rb
Instance Method Summary collapse
-
#initialize(klass, method) ⇒ MethodRedefinitionError
constructor
A new instance of MethodRedefinitionError.
- #to_s ⇒ Object
Constructor Details
#initialize(klass, method) ⇒ MethodRedefinitionError
Returns a new instance of MethodRedefinitionError.
3 4 5 |
# File 'lib/agrippa/methods.rb', line 3 def initialize(klass, method) @klass, @method = klass, method end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/agrippa/methods.rb', line 7 def to_s "Redefinition of #{@klass}##{@method}; use the 'redefine' option if you really want to overwrite the existing method." end |