Class: Palaver::InfoBox

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

Instance Method Summary collapse

Methods inherited from Base

#height, #text, #width, #with_tempfile

Constructor Details

#initialize(options) ⇒ InfoBox

Returns a new instance of InfoBox.



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

def initialize(options)
  super(options)
end

Instance Method Details

#showObject



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

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