In Files

  • rubygems/user_interaction.rb

Class/Module Index [+]

Quicksearch

Gem::UserInteraction

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

Public Instance Methods

alert click to toggle source
 
               # File rubygems/user_interaction.rb, line 90
  
            
alert_error click to toggle source
 
               # File rubygems/user_interaction.rb, line 93
  
            
alert_warning click to toggle source
 
               # File rubygems/user_interaction.rb, line 96
  
            
ask click to toggle source
 
               # File rubygems/user_interaction.rb, line 99
  
            
ask_yes_no click to toggle source
 
               # File rubygems/user_interaction.rb, line 102
  
            
choose_from_list click to toggle source
 
               # File rubygems/user_interaction.rb, line 105
  
            
say click to toggle source
 
               # File rubygems/user_interaction.rb, line 108
  
            
terminate_interaction click to toggle source
 
               # File rubygems/user_interaction.rb, line 111