static public Method

Kernel.method_added(name)

Detect method additions to Kernel and remove them in the BlankSlate class.

Source Code

# File blankslate.rb, line 65
def method_added(name)
  result = blank_slate_method_added(name)
  return result if self != Kernel
  BlankSlate.hide(name)
  result
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.