rails

https://github.com/rails/rails

Ruby

Ruby on Rails

ActiveStorage::Filename#extension_without_delimiter

Filename.new("racecar.jpg").extension_without_delimiter # => "jpg"

Source | Google | Stack overflow

Edit

git clone [email protected]:rails/rails.git

cd rails

open activestorage/app/models/active_storage/filename.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveStorage--Filename-extension_without_delimiter-for-pr


# Commit to git

git add activestorage/app/models/active_storage/filename.rbgit commit -m "better docs for ActiveStorage::Filename#extension_without_delimiter"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ActiveStorage--Filename-extension_without_delimiter-for-pr

hub pull-request


# Celebrate!