elasticsearch-ruby

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

Ruby

Ruby integrations for Elasticsearch

Opal::Nodes::ConstNode#magical_data_const?

Ruby has a magical const DATA
that should be processed in a different way:
1. When current file contains __END__ in the end of the file
   DATA const should be resolved to the string located after __END__
2. When current file doesn't have __END__ section
   DATA const should be resolved to a regular ::DATA constant

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-Opal--Nodes--ConstNode-magical_data_const--for-pr


# Commit to git

git add git commit -m "better docs for Opal::Nodes::ConstNode#magical_data_const?"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Opal--Nodes--ConstNode-magical_data_const--for-pr

hub pull-request


# Celebrate!