Class: Palaver::YesNo

Inherits:
Base
  • Object
show all
Defined in:
lib/palaver/yesno.rb

Instance Method Summary collapse

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

#showObject



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