class Bundler::Standalone
def prevent_gem_activation
def prevent_gem_activation <<~'END' module Kernel remove_method(:gem) if private_method_defined?(:gem) def gem(*) end private :gem end END end
def prevent_gem_activation <<~'END' module Kernel remove_method(:gem) if private_method_defined?(:gem) def gem(*) end private :gem end END end