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 defined
Methods
Public Class methods
Detect method additions to Kernel and remove them in the BlankSlate class.
[ show source ]
# File lib/builder/blankslate.rb, line 43
43: def method_added(name)
44: blank_slate_method_added(name)
45: return if self != Kernel
46: Builder::BlankSlate.hide(name)
47: end