A timer wich uses a internal clock and accepts subscribers
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
spec
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
tick_tacker.gemspec

README.rdoc

Tick Tacker (tick_tacker)

A timer with a internal clock wich uses the observer pattern to notify other objects when the time pass.

Install

  • You need to install the gem

    $ gem install tick_tacker

Done!

Usage

@timer = TickTacker::Timer.new.with :total_time => 5.seconds
@timer.add_observer self
Thread.new {
  @timer.start
}

You can check the examples/ dir to see more examples.

Copyright

Copyright © 2011 Ricardo Valeriano. See LICENSE.txt details.