picky
https://github.com/floere/picky
HTML
Picky is an easy to use and fast Ruby semantic search engine that helps your users find what they are looking for.
Picky::Backends::Redis::Float#[]
Get a single value.
Internal API method for the index.
Note: Works like the StringHash method, but
returns a float corresponding to that string.
Note: nil.to_f returns 0.0. That's why the
code below looks a bit funny.Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/backends/redis/float.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Backends--Redis--Float----for-pr
# Commit to gitgit add server/lib/picky/backends/redis/float.rbgit commit -m "better docs for Picky::Backends::Redis::Float#[]"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Picky--Backends--Redis--Float----for-pr
hub pull-request
# Celebrate!