- Defined in:
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.
Instance Method Summary collapse
Instance Method Details
95 96 97 98 99 100 101 102
# File 'lib/blankslate.rb', line 95 def append_features(mod) result = blankslate_original_append_features(mod) return result if mod != instance_methods.each do |name| .(name) end result end
# File 'lib/blankslate.rb', line 94 alias_method :blankslate_original_append_features, :append_features