Skip to content
windowing data structure
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.yardopts
Gemfile
LICENSE.txt
README.md
Rakefile
time_trap.gemspec

README.md

TimeTrap

TimeTrap impelents a moving window data structure for keeping track of top-k things as they are created (eg. tweets, exceptions in a log file, or :Q

Installation

bundler gem 'time_trap'
raw gem gem install time_trap

Usage

tt = TimeTrap.new
tt.add("benedict")
tt.add("cumberbatch")
You can’t perform that action at this time.