Module: Bowline::Desktop

Extended by:
Watcher::Base
Includes:
Logging
Defined in:
lib/bowline/desktop.rb,
lib/bowline/desktop/js.rb,
lib/bowline/desktop/app.rb,
lib/bowline/desktop/dock.rb,
lib/bowline/desktop/host.rb,
lib/bowline/desktop/misc.rb,
lib/bowline/desktop/path.rb,
lib/bowline/desktop/proxy.rb,
lib/bowline/desktop/sound.rb,
lib/bowline/desktop/bridge.rb,
lib/bowline/desktop/dialog.rb,
lib/bowline/desktop/window.rb,
lib/bowline/desktop/network.rb,
lib/bowline/desktop/runtime.rb,
lib/bowline/desktop/clipboard.rb,
lib/bowline/desktop/window_manager.rb,
lib/bowline/desktop/window_methods.rb

Defined Under Namespace

Modules: App, Bridge, Clipboard, Dialog, Dock, Host, JS, Misc, Network, Path, Runtime, Sound, WindowMethods Classes: MainWindow, Proxy, Window, WindowManager

Class Method Summary collapse

Methods included from Watcher::Base

extended, included, watcher

Methods included from Logging

#debug, debug, #log_error, log_error, trace, #trace

Class Method Details

.enabled?Boolean

Return true if we’re currently being executed by bowline-desktop.

Returns:

  • (Boolean)


16
17
18
# File 'lib/bowline/desktop.rb', line 16

def enabled?
  $0 == "bowline"
end

.idleObject

:nodoc:



21
22
23
24
25
# File 'lib/bowline/desktop.rb', line 21

def idle #:nodoc:
  watcher.call(:on_idle)
rescue => e
  log_error e
end

.tickObject

:nodoc:



28
29
30
31
32
# File 'lib/bowline/desktop.rb', line 28

def tick #:nodoc:
  watcher.call(:on_tick)
rescue => e
  log_error e
end