Sha256: 5e02017baf4210d2f58007e6e884677b218f0c9d9e2352ef2172d951a946b885
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
#!/usr/bin/env ruby =begin update.rb Luca Russo <vargolo@gmail.com> Copyright (LGPL) 2006 - 2011 ruby-libnotify update example =end begin require 'RNotify' rescue LoadError require 'rubygems' require 'RNotify' end Notify.init("Test2") test = Notify::Notification.new("Test 2", "This is a test", nil) test.timeout= Notify::Notification::EXPIRES_NEVER test.show sleep(3) test.update("Test 2", "Message replaced!", nil) test.timeout=5000 #5 seconds test.show
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-libnotify-0.5.0 | examples/update.rb |