Class: ClockWindow::ClockIt

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

Instance Method Summary collapse

Constructor Details

#initializeClockIt

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_windowObject



10
11
12
13
# File 'lib/clock_window.rb', line 10

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