Parent

Files

Class/Module Index [+]

Quicksearch

Module

Public Instance Methods

redefine_method(method, &block) click to toggle source
# File lib/whois/core_ext/module/remove_method.rb, line 12
def redefine_method(method, &block)
  remove_possible_method(method)
  define_method(method, &block)
end
remove_possible_method(method) click to toggle source
# File lib/whois/core_ext/module/remove_method.rb, line 2
def remove_possible_method(method)
  if method_defined?(method) || private_method_defined?(method)
    remove_method(method)
  end
rescue NameError
  # If the requested method is defined on a superclass or included module,
  # method_defined? returns true but remove_method throws a NameError.
  # Ignore this.
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.