Exception: Agrippa::MethodRedefinitionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/agrippa/methods.rb

Instance Method Summary collapse

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_sObject



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