elasticsearch-ruby

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

Ruby

Ruby integrations for Elasticsearch

Opal::Nodes::HashNode#compile_merge

Compiles hashes containing kwsplats inside.
hash like { **{ nested: 1 }, a: 1, **{ nested: 2} }
should be compiled to
{ nested: 1}.merge(a: 1).merge(nested: 2)
Each kwsplat overrides previosly defined keys
Hash k/v pairs override previously defined kwsplat values

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--HashNode-compile_merge-for-pr


# Commit to git

git add git commit -m "better docs for Opal::Nodes::HashNode#compile_merge"


# 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--HashNode-compile_merge-for-pr

hub pull-request


# Celebrate!