Class: ClipboardManager::Message

Inherits:
Such::Dialog
  • Object
show all
Defined in:
lib/clipboard_manager/clipboard_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Message

Returns a new instance of Message.



51
52
53
54
# File 'lib/clipboard_manager/clipboard_manager.rb', line 51

def initialize(key)
  super
  add_button '_OK', Gtk::ResponseType::OK
end

Instance Method Details

#label(key) ⇒ Object



56
57
58
# File 'lib/clipboard_manager/clipboard_manager.rb', line 56

def label(key)
  Such::Label.new child, key
end

#runsObject



60
61
62
63
64
# File 'lib/clipboard_manager/clipboard_manager.rb', line 60

def runs
  show_all
  response = run
  destroy
end