Files

Class/Module Index [+]

Quicksearch

Kernel

Public Class Methods

method_added(name) click to toggle source

Detect method additions to Kernel and remove them in the Namespace class

# File lib/capistrano/configuration/namespaces.rb, line 210
def method_added(name)
  result = method_added_without_capistrano(name)
  return result if self != Kernel

  namespace = Capistrano::Configuration::Namespaces::Namespace

  if namespace.method_defined?(name) && namespace.method(name).owner == Kernel
    namespace.send :undef_method, name
  end

  result
end
method_added_without_capistrano(name) click to toggle source
Alias for: method_added

[Validate]

Generated with the Darkfish Rdoc Generator 2.