Since Ruby is very dynamic, methods added to the ancestors of BlankSlate after BlankSlate is defined will show up in the list of available BlankSlate methods. We handle this by defining a hook in the Object and Kernel classes that will hide any method defined after BlankSlate has been loaded.

Public Class methods

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

    # File lib/blankslate.rb, line 61
61:     def method_added(name)
62:       result = blank_slate_method_added(name)
63:       return result if self != Kernel
64:       BlankSlate.hide(name)
65:       result
66:     end