Class: ClockWindow::ClockIt
- Inherits:
-
Object
- Object
- ClockWindow::ClockIt
- Defined in:
- lib/clock_window.rb
Instance Method Summary collapse
- #active_window ⇒ Object
-
#initialize ⇒ ClockIt
constructor
As this will get more sophisticated this class is the UI.
Constructor Details
#initialize ⇒ ClockIt
As this will get more sophisticated this class is the UI
6 7 8 |
# File 'lib/clock_window.rb', line 6 def initialize @os_cmd = OScommand.new end |
Instance Method Details
#active_window ⇒ Object
10 11 12 13 |
# File 'lib/clock_window.rb', line 10 def active_window exe, format = @os_cmd.active_window format.call(`#{exe}`) end |