Class: Palaver::YesNo
Instance Method Summary collapse
-
#initialize(optons) ⇒ YesNo
constructor
A new instance of YesNo.
- #show ⇒ Object
Methods inherited from Base
#height, #text, #width, #with_tempfile
Constructor Details
#initialize(optons) ⇒ YesNo
Returns a new instance of YesNo.
6 7 8 |
# File 'lib/palaver/yesno.rb', line 6 def initialize(optons) super optons end |
Instance Method Details
#show ⇒ Object
10 11 12 13 14 |
# File 'lib/palaver/yesno.rb', line 10 def show cmd = "dialog --yesno '#@text' #@height #@width" rc = system cmd return rc end |