elasticsearch-ruby

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

Ruby

Ruby integrations for Elasticsearch

SourceMap::Offset#<=>

Public: Compare Offset to another.

Useful for determining if a position in a few is between two offsets.

other - Another Offset

Returns a negative number when other is smaller and a positive number
when its greater. Implements the Comparable#<=> protocol.

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-SourceMap--Offset-----for-pr


# Commit to git

git add git commit -m "better docs for SourceMap::Offset#<=>"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-SourceMap--Offset-----for-pr

hub pull-request


# Celebrate!