【文件属性】:
文件名称:notify:多种平台的通知功能
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-02 17:48:23
Ruby
通知
“通知”在跨平台上提供通知功能。
特征
通知支持以下功能:
咆哮
通知发送
Windows低吼( ruby_gntp )
公开通知
Mountain Lion通知中心( terminal-notifier )
安装
gem install notify
用法
require 'notify'
Notify.notify "title", "message"
或者
ENV['NOTIFY'] = 'growlnotify'
require 'notify'
Notify.notify "title", "message"
通知还允许传入应用名称以替换默认的“Ruby”:
require 'notify'
Notify.notify "title", "message", { app_name: "My App" }
命令
% notify title messages
版权
版权
【文件预览】:
notify-master
----.gitignore(4B)
----sample.rb(122B)
----bin()
--------notify(208B)
----LICENSE(1KB)
----notify.gemspec(852B)
----README.md(768B)
----VERSION(5B)
----lib()
--------notify.rb(1KB)
--------notify()
----Rakefile(27B)