class Module
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.
Public Instance Methods
append_features(mod)
click to toggle source
# File lib/blankslate.rb 130 def append_features(mod) 131 result = blankslate_original_append_features(mod) 132 return result if mod != Object 133 instance_methods.each do |name| 134 BlankSlate.hide(name) 135 end 136 result 137 end
Also aliased as: blankslate_original_append_features