Type:
Module

Make the default UI accessible 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:

1
2
3
4
5
6
7
class X
  include Gem::UserInteraction
 
  def get_answer
    n = ask("What is the meaning of life?")
  end
end
alert_error
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

alert_error(*args) Instance Public methods

2025-01-10 15:47:30
ask_yes_no
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

ask_yes_no(*args) Instance Public methods

2025-01-10 15:47:30
alert
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

alert(*args) Instance Public methods

2025-01-10 15:47:30
alert_warning
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

alert_warning(*args) Instance Public methods

2025-01-10 15:47:30
ask_for_password
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

ask_for_password(*args) Instance Public methods

2025-01-10 15:47:30
terminate_interaction
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

terminate_interaction(*args) Instance Public methods

2025-01-10 15:47:30
choose_from_list
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

choose_from_list(*args) Instance Public methods

2025-01-10 15:47:30
ask
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

ask(*args) Instance Public methods

2025-01-10 15:47:30
say
  • References/Ruby on Rails/Ruby/Classes/Gem/Gem::UserInteraction

say(*args) Instance Public methods

2025-01-10 15:47:30