Sha256: 84c935b88e90e88cd59f98df90b9056b663373245e7c1c1c4a0fa941bb7c63dd
Contents?: true
Size: 322 Bytes
Versions: 30
Compression:
Stored size: 322 Bytes
Contents
class Knj::Notify def self.send(args) cmd = "notify-send" if args["time"] raise "Time is not numeric." if !Php.is_numeric(args["time"]) cmd << " -t " + args["time"].to_s end cmd << " " + Strings.UnixSafe(args["title"]) + " " + Strings.UnixSafe(args["msg"]) system(cmd) end end
Version data entries
30 entries across 30 versions & 1 rubygems