Also, modules included into Object need to be scanned and have their instance methods removed from blank slate. In theory, modules included into Kernel would have to be removed as well, but a “feature” of Ruby prevents late includes into modules from being exposed in the first place.
# File lib/blankslate.rb, line 105 105: def append_features(mod) 106: result = blankslate_original_append_features(mod) 107: return result if mod != Object 108: instance_methods.each do |name| 109: BlankSlate.hide(name) 110: end 111: result 112: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.