solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::LocalizedNumber.parse

Given a string, strips all non-price-like characters from it,
taking into account locale settings. Returns the input given anything
else.

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/lib/spree/localized_number.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--LocalizedNumber-parse-for-pr


# Commit to git

git add core/lib/spree/localized_number.rbgit commit -m "better docs for Spree::LocalizedNumber.parse"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Spree--LocalizedNumber-parse-for-pr

hub pull-request


# Celebrate!