Sha256: fa407ce93de52279798bb33492dab48bead2f5792c12ac5ff81757854cc02bfe

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

module Bowline
  module Desktop
    include Bowline::Logging
    extend Bowline::Watcher::Base
    watch :on_tick, :on_idle
    
    def enabled?
      $0 == "bowline"
    end
    module_function :enabled?
    
    def idle
      watcher.call(:on_idle)
    rescue => e
      log_error e
    end
    module_function :idle

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bowline-0.5.3 lib/bowline/desktop.rb
bowline-0.5.2 lib/bowline/desktop.rb
bowline-0.5.1 lib/bowline/desktop.rb
bowline-0.5.0 lib/bowline/desktop.rb