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::File::JSON#[]

See lib/picky/backends/file.rb for what this should return.

1. Gets the length and offset for the key.
2. Extracts and decodes the object from the file.

Source | Google | Stack overflow

Edit

git clone [email protected]:floere/picky.git

cd picky

open server/lib/picky/backends/file/json.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Picky--Backends--File--JSON----for-pr


# Commit to git

git add server/lib/picky/backends/file/json.rbgit commit -m "better docs for Picky::Backends::File::JSON#[]"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Picky--Backends--File--JSON----for-pr

hub pull-request


# Celebrate!