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