Class: ClockWindow::ClockIt

Inherits:
Object
  • Object
show all
Defined in:
lib/clock_window.rb

Instance Method Summary collapse

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_windowObject



13
14
15
16
# File 'lib/clock_window.rb', line 13

def active_window
  exe, format = @os_cmd.active_window
  format.call(`#{exe}`)
end