Class: Pwl::Dialog::Password

Inherits:
Object
  • Object
show all
Defined in:
lib/pwl/dialog.rb

Class Method Summary collapse

Class Method Details

.new(title, prompt) ⇒ Object

Factory method that creates a new password dialog that suits the current GUI platform. If no implementation was found for the current platform, a ConsolePasswordDialog is returned.



26
27
28
# File 'lib/pwl/dialog.rb', line 26

def new(title, prompt)
  (PLATFORM_PASSWORD_DIALOGS[Dialog.gui_platform] || ConsolePasswordDialog).new(title, prompt)
end