elasticsearch-ruby

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

Ruby

Ruby integrations for Elasticsearch

Racc::Parser#on_error

This method is called when a parse error is found.

ERROR_TOKEN_ID is an internal ID of token which caused error.
You can get string representation of this ID by calling
#token_to_str.

ERROR_VALUE is a value of error token.

value_stack is a stack of symbol values.
DO NOT MODIFY this object.

This method raises ParseError by default.

If this method returns, parsers enter "error recovering mode".

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-on_error-for-pr


# Commit to git

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


# 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-on_error-for-pr

hub pull-request


# Celebrate!