elasticsearch-ruby

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

Ruby

Ruby integrations for Elasticsearch

Kernel.open

Allows the opening of various resources including URIs.

If the first argument responds to the 'open' method, 'open' is called on
it with the rest of the arguments.

If the first argument is a string that begins with xxx://, it is parsed by
URI.parse.  If the parsed object responds to the 'open' method,
'open' is called on it with the rest of the arguments.

Otherwise, the original Kernel#open is called.

OpenURI::OpenRead#open provides URI::HTTP#open, URI::HTTPS#open and
URI::FTP#open, Kernel#open.

We can accept URIs and strings that begin with http://, https:// and
ftp://. In these cases, the opened file object is extended by OpenURI::Meta.

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-Kernel-open-for-pr


# Commit to git

git add git commit -m "better docs for Kernel.open"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Kernel-open-for-pr

hub pull-request


# Celebrate!