elasticsearch-ruby

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

Ruby

Ruby integrations for Elasticsearch

Racc::Parser#do_parse

The entry point of the parser. This method is used with #next_token.
If Racc wants to get token (and its value), calls next_token.

Example:
    def parse
      @q = [[1,1],
            [2,2],
            [3,3],
            [false, '$']]
      do_parse
    end

    def next_token
      @q.shift
    end

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


# Commit to git

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


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

hub pull-request


# Celebrate!