Class: ClockIndicator::Main
- Inherits:
-
Object
- Object
- ClockIndicator::Main
- Defined in:
- lib/clock_indicator/main.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
3 4 5 |
# File 'lib/clock_indicator/main.rb', line 3 def self.run new.run end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 |
# File 'lib/clock_indicator/main.rb', line 7 def run Gtk.init ClockIndicator::Clock.new trap('SIGINT') { Gtk.main_quit } Gtk.main end |