Sha256: 25dd98566bfeeb33938ec421e979ba0dbfef681e84273dbd0ecd85fe6ec27094

Contents?: true

Size: 648 Bytes

Versions: 13

Compression:

Stored size: 648 Bytes

Contents

module Bowline
  module Desktop
    # The Dock module gives you a few methods to control
    # the Mac OSX dock. It's platform specific, and on platforms  
    # other than OSX calling the methods won't do anything.
    module Dock
      # Set the badge number. This is the little numbered red star above
      # the App's Dock icon. A good example of this is Mail.app incrementing
      # its icon's star whenever a new mail is received.
      def badge=(number)
        self._badge = number.to_s
      end
      module_function :badge=
      
      ##
      # :singleton-method: clear_badge
      # Clear the Icon's badge number
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
bowline-0.9.4 lib/bowline/desktop/dock.rb
bowline-0.9.3 lib/bowline/desktop/dock.rb
bowline-0.9.2 lib/bowline/desktop/dock.rb
bowline-0.9.1 lib/bowline/desktop/dock.rb
bowline-0.6.3 lib/bowline/desktop/dock.rb
bowline-0.6.2 lib/bowline/desktop/dock.rb
bowline-0.6.1 lib/bowline/desktop/dock.rb
bowline-0.6.0 lib/bowline/desktop/dock.rb
bowline-0.5.8 lib/bowline/desktop/dock.rb
bowline-0.5.7 lib/bowline/desktop/dock.rb
bowline-0.5.6 lib/bowline/desktop/dock.rb
bowline-0.5.5 lib/bowline/desktop/dock.rb
bowline-0.5.4 lib/bowline/desktop/dock.rb