mail

https://github.com/mikel/mail

Ruby

A Really Ruby Mail Library

String#from

Returns the remaining of the string from the +position+ treating the string as an array (where 0 is the first character).

Examples:
  "hello".from(0)  # => "hello"
  "hello".from(2)  # => "llo"
  "hello".from(10) # => "" if < 1.9, nil in 1.9

Source | Google | Stack overflow

Edit

git clone [email protected]:mikel/mail.git

cd mail

open lib/mail/core_extensions/string/access.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-String-from-for-pr


# Commit to git

git add lib/mail/core_extensions/string/access.rbgit commit -m "better docs for String#from"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-String-from-for-pr

hub pull-request


# Celebrate!