module
Gem::UserInteraction
v2_4_6 -
Show latest stable
UserInteraction allows RubyGems to interact with the user through standard methods that can be replaced with more-specific UI methods for different displays.
Since UserInteraction dispatches to a concrete UI class you may need to reference other classes for specific behavior such as Gem::ConsoleUI or Gem::SilentUI.
Example:
class X include Gem::UserInteraction def get_answer n = ask("What is the meaning of life?") end end
Included modules
- Gem::DefaultUserInteraction
Files
- lib/rubygems/user_interaction.rb