elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Racc::Parser#next_token

The method to fetch next token.
If you use #do_parse method, you must implement #next_token.

The format of return value is [TOKEN_SYMBOL, VALUE].
+token-symbol+ is represented by Ruby's symbol by default, e.g. :IDENT
for 'IDENT'.  ";" (String) for ';'.

The final symbol (End of file) must be false.

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Racc--Parser-next_token-for-pr


# Commit to git

git add git commit -m "better docs for Racc::Parser#next_token"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Racc--Parser-next_token-for-pr

hub pull-request


# Celebrate!