Module: Bowline::Desktop::Dock

Defined in:
lib/bowline/desktop/dock.rb

Overview

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.

Class Method Summary collapse

Class Method Details

.badge=(number) ⇒ Object

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.



10
11
12
# File 'lib/bowline/desktop/dock.rb', line 10

def badge=(number)
  self._badge = number.to_s
end