class Pwl::Dialog::Password
Public Class Methods
new(title, prompt)
click to toggle source
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.
# File lib/pwl/dialog.rb, line 26 def new(title, prompt) (PLATFORM_PASSWORD_DIALOGS[Dialog.gui_platform] || ConsolePasswordDialog).new(title, prompt) end