Class: Palaver::MsgBox

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

Instance Method Summary collapse

Methods inherited from Base

#height, #text, #width, #with_tempfile

Constructor Details

#initialize(options) ⇒ MsgBox

Returns a new instance of MsgBox.



6
7
8
# File 'lib/palaver/msgbox.rb', line 6

def initialize(options)
  super options
end

Instance Method Details

#showObject



10
11
12
13
# File 'lib/palaver/msgbox.rb', line 10

def show
  cmd = "dialog --msgbox '#@text' #@height #@width"
  system cmd
end