Little Faker Gem
Delegates access to Faker gem methods from single name space.
Dependencies
Requirements:
- Ruby 1.9 or greater
- Faker gem
Setup
Add to Gemfile:
gem ‘little_faker’
Require where needed:
require ‘fake’
or
require ‘little_faker’
Usage
Examples:
Faker::Internet.email => Fake.email
Faker::Internet.password => Fake.password
Faker::Name.first_name => Fake.first_name
etc.
Add custom fakers to:
class << Fake
def another_faker
…
end
end
List all faker methods:
$ Fake.faker_methods