faker

https://github.com/stympy/faker

Ruby

A library for generating fake data such as names, addresses, and phone numbers.

Faker::Base.parse

Load formatted strings from the locale, "parsing" them
into method calls that can be used to generate a
formatted translation: e.g., "#{first_name} #{last_name}".

Source | Google | Stack overflow

Edit

git clone [email protected]:stympy/faker.git

cd faker

open lib/faker.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Faker--Base-parse-for-pr


# Commit to git

git add lib/faker.rbgit commit -m "better docs for Faker::Base.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-Faker--Base-parse-for-pr

hub pull-request


# Celebrate!