elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
OpenURI::OpenRead#open
OpenURI::OpenRead#open provides `open' for URI::HTTP and URI::FTP.
OpenURI::OpenRead#open takes optional 3 arguments as:
OpenURI::OpenRead#open([mode [, perm]] [, options]) [{|io| ... }]
OpenURI::OpenRead#open returns an IO-like object if block is not given.
Otherwise it yields the IO object and return the value of the block.
The IO object is extended with OpenURI::Meta.
+mode+ and +perm+ are the same as Kernel#open.
However, +mode+ must be read mode because OpenURI::OpenRead#open doesn't
support write mode (yet).
Also +perm+ is ignored because it is meaningful only for file creation.Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-OpenURI--OpenRead-open-for-pr
# Commit to gitgit add git commit -m "better docs for OpenURI::OpenRead#open"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-OpenURI--OpenRead-open-for-pr
hub pull-request
# Celebrate!