Class: Module
Overview
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
#append_features(mod) ⇒ Object
116 117 118 119 120 121 122 123 |
# File 'lib/gem/commands/new_command/blank_slate.rb', line 116 def append_features(mod) result = gemnew_blank_slate_original_append_features(mod) return result if mod != Object instance_methods.each do |name| Gem::Commands::NewCommand::BlankSlate.hide(name) end result end |
#gemnew_blank_slate_original_append_features ⇒ Object
115 |
# File 'lib/gem/commands/new_command/blank_slate.rb', line 115 alias gemnew_blank_slate_original_append_features append_features |