Library to send Ubuntu’s Notify-OSD notifications from Ruby.
Download the library and require the notify-osd-ruby.rb file in your code header.
Sending a simple notification:
>> require "notify-osd-ruby.rb" >> notification = Notification.new >> notification.title = "Hello world" >> notification.body = "Testing Notify OSD Ruby, and.. it works!" >> notification.post
You should see now the notification appearing in the screen.
For more informations and examples, take a look at the ‘scripts’ folder.
by pH (Pedro Henrique Cavallieri Franceschi) - iBlogeek.com - 2006-2010 © - All Rights Reserved - @pedroh96 - [email protected]