Module: Libnotify
- Defined in:
- lib/libnotify.rb,
lib/libnotify/ffi.rb,
lib/libnotify/api.rb,
lib/libnotify/version.rb
Overview
Ruby bindings for libnotify using FFI.
See README.rdoc for usage examples.
Defined Under Namespace
Constant Summary
- VERSION =
"0.8.0"
Class Method Summary (collapse)
-
+ (API) new(options = {}) {|notify| ... }
Creates a notification.
-
+ (Object) show(options = {}, &block)
Shows a notification.
Class Method Details
+ (API) new(options = {}) {|notify| ... }
Creates a notification.
58 59 60 |
# File 'lib/libnotify.rb', line 58 def self.new(={}, &block) API.new(, &block) end |
+ (Object) show(options = {}, &block)
Shows a notification. It takes the same options as Libnotify.new.
65 66 67 |
# File 'lib/libnotify.rb', line 65 def self.show(={}, &block) API.show(, &block) end |