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::Generators::Partial::Infix#initialize
The min option signifies with what size it will start in generating the infix tokens. Examples: With :hello, and max: -1 (default) * min: 1 # => [:hello, :hell, :ello, :hel, :ell, :llo, :he, :el, :ll, :lo, :h, :e, :l, :l, :o] * min: 4 # => [:hello, :hell, :ello] With :hello, and max: -2 * min: 1 # => [:hell, :ello, :hel, :ell, :llo, :he, :el, :ll, :lo, :h, :e, :l, :l, :o] * min: 4 # => [:hell, :ello] (min 1 is default)
Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/generators/partial/infix.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Picky--Generators--Partial--Infix-initialize-for-pr
# Commit to gitgit add server/lib/picky/generators/partial/infix.rbgit commit -m "better docs for Picky::Generators::Partial::Infix#initialize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Picky--Generators--Partial--Infix-initialize-for-pr
hub pull-request
# Celebrate!