Module: Gem::UserInteraction
- Includes:
- DefaultUserInteraction
- Included in:
- Builder, Command, CommandManager, DocManager, Installer, RemoteInstaller, SourceIndex, SourceIndex, SourceInfoCache, Uninstaller, Validator
- Defined in:
- lib/rubygems/user_interaction.rb
Overview
Make the default UI accessable without the “ui.” prefix. Classes including this module may use the interaction methods on the default UI directly. Classes may also reference the ui
and ui=
methods.
Example:
class X
include Gem::UserInteraction
def get_answer
n = ask("What is the meaning of life?")
end
end