Sha256: ae0388765303111f585097c45a6902bc2a317818fd8482637e402d806422abb1
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
require 'ruby-growl' module HatebuWatcher module Observers class CounterObserver def update(count) growl = Growl.new('localhost', 'HatebuWatcher') growl.add_notification('changed') growl.notify('changed', 'HatebuWatcher', text(count)) end private def text(count) "Count: #{count} (#{time})" end def time Time.now.strftime('%T') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hatebu_watcher-0.0.1 | lib/hatebu_watcher/observers/counter_observer.rb |