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.
String#each_intoken
'keys'.each_intoken # => yields each of ['keys', 'key', 'eys', 'ke', 'ey', 'ys', 'k', 'e', 'y', 's'] 'keys'.each_intoken(2) # => yields each of ['keys', 'key', 'eys', 'ke', 'ey', 'ys'] 'keys'.each_intoken(2, 3) # => yields each of ['key', 'eys', 'ke', 'ey', 'ys'] 'keys'.each_intoken(10, 12) # => yields nothing (min larger than str)
Edit
git clone [email protected]:floere/picky.git
cd picky
open server/lib/picky/extensions/string.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-String-each_intoken-for-pr
# Commit to gitgit add server/lib/picky/extensions/string.rbgit commit -m "better docs for String#each_intoken"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-String-each_intoken-for-pr
hub pull-request
# Celebrate!