class Pwl::Dialog::Text
Public Class Methods
new(title, prompt)
click to toggle source
Factory method that creates a new text (input) dialog that suits the current GUI platform. If no implementation was found for the current platform, a ConsoleTextDialog
is returned.
# File lib/pwl/dialog.rb, line 36 def new(title, prompt) (PLATFORM_TEXT_DIALOGS[Dialog.gui_platform] || ConsoleTextDialog).new(title, prompt) end