module FFaker
def self.bothify(masks)
def self.bothify(masks) letterify(numerify(masks)) end
def self.hexify(*masks)
def self.hexify(*masks) fetch_sample(masks.flatten).gsub(/#/) { fetch_sample(HEX) } end
def self.letterify(*masks)
def self.letterify(*masks) fetch_sample(masks.flatten).gsub(/\?/) { fetch_sample(LETTERS) } end
def self.numerify(*masks)
def self.numerify(*masks) fetch_sample(masks.flatten).gsub(/#/) { rand(0..9).to_s } end
Modules
- FFaker::AWS
- FFaker::Address
- FFaker::AddressAU
- FFaker::AddressBR
- FFaker::AddressCA
- FFaker::AddressCH
- FFaker::AddressCHDE
- FFaker::AddressCHFR
- FFaker::AddressCHIT
- FFaker::AddressDA
- FFaker::AddressDE
- FFaker::AddressFI
- FFaker::AddressFR
- FFaker::AddressGR
- FFaker::AddressID
- FFaker::AddressIN
- FFaker::AddressJA
- FFaker::AddressKR
- FFaker::AddressMX
- FFaker::AddressNL
- FFaker::AddressPL
- FFaker::AddressRU
- FFaker::AddressSE
- FFaker::AddressSN
- FFaker::AddressUA
- FFaker::AddressUK
- FFaker::AddressUS
- FFaker::Airline
- FFaker::Animal
- FFaker::AnimalCN
- FFaker::AnimalES
- FFaker::AnimalPL
- FFaker::AnimalUS
- FFaker::ArrayUtils
- FFaker::Avatar
- FFaker::BaconIpsum
- FFaker::Bank
- FFaker::Book
- FFaker::Boolean
- FFaker::CheesyLingo
- FFaker::Code
- FFaker::Color
- FFaker::ColorPL
- FFaker::ColorUA
- FFaker::Company
- FFaker::CompanyCN
- FFaker::CompanyIT
- FFaker::CompanyJA
- FFaker::CompanySE
- FFaker::Conference
- FFaker::CoursesFR
- FFaker::Currency
- FFaker::DizzleIpsum
- FFaker::Education
- FFaker::EducationCN
- FFaker::Filesystem
- FFaker::Food
- FFaker::FoodPL
- FFaker::FreedomIpsum
- FFaker::Gender
- FFaker::GenderBR
- FFaker::GenderCN
- FFaker::GenderID
- FFaker::GenderJA
- FFaker::GenderJP
- FFaker::GenderKR
- FFaker::GenderPL
- FFaker::Geolocation
- FFaker::Guid
- FFaker::HTMLIpsum
- FFaker::HealthcareIpsum
- FFaker::HealthcareRU
- FFaker::HipsterIpsum
- FFaker::Identification
- FFaker::IdentificationBR
- FFaker::IdentificationES
- FFaker::IdentificationESCL
- FFaker::IdentificationESCO
- FFaker::IdentificationIN
- FFaker::IdentificationKr
- FFaker::IdentificationMX
- FFaker::IdentificationPL
- FFaker::IdentificationTW
- FFaker::Image
- FFaker::Internet
- FFaker::InternetSE
- FFaker::Job
- FFaker::JobBR
- FFaker::JobCN
- FFaker::JobFR
- FFaker::JobJA
- FFaker::JobKR
- FFaker::JobVN
- FFaker::Locale
- FFaker::Lorem
- FFaker::LoremAR
- FFaker::LoremCN
- FFaker::LoremFR
- FFaker::LoremIE
- FFaker::LoremJA
- FFaker::LoremKR
- FFaker::LoremPL
- FFaker::LoremRU
- FFaker::LoremUA
- FFaker::ModuleUtils
- FFaker::Movie
- FFaker::Music
- FFaker::Name
- FFaker::NameAR
- FFaker::NameBR
- FFaker::NameCN
- FFaker::NameCS
- FFaker::NameDA
- FFaker::NameDE
- FFaker::NameES
- FFaker::NameFR
- FFaker::NameGA
- FFaker::NameGR
- FFaker::NameID
- FFaker::NameIN
- FFaker::NameIT
- FFaker::NameJA
- FFaker::NameKH
- FFaker::NameKR
- FFaker::NameMX
- FFaker::NameNB
- FFaker::NameNL
- FFaker::NamePH
- FFaker::NamePL
- FFaker::NameRU
- FFaker::NameSE
- FFaker::NameSN
- FFaker::NameTH
- FFaker::NameTHEN
- FFaker::NameTW
- FFaker::NameUA
- FFaker::NameVN
- FFaker::NatoAlphabet
- FFaker::PhoneNumber
- FFaker::PhoneNumberAU
- FFaker::PhoneNumberBR
- FFaker::PhoneNumberCH
- FFaker::PhoneNumberCU
- FFaker::PhoneNumberDA
- FFaker::PhoneNumberDE
- FFaker::PhoneNumberFR
- FFaker::PhoneNumberID
- FFaker::PhoneNumberIT
- FFaker::PhoneNumberJA
- FFaker::PhoneNumberKR
- FFaker::PhoneNumberMX
- FFaker::PhoneNumberNL
- FFaker::PhoneNumberPL
- FFaker::PhoneNumberRU
- FFaker::PhoneNumberSE
- FFaker::PhoneNumberSG
- FFaker::PhoneNumberSN
- FFaker::PhoneNumberTW
- FFaker::PhoneNumberUA
- FFaker::Product
- FFaker::Random
- FFaker::RandomUtils
- FFaker::SSN
- FFaker::SSNMX
- FFaker::SSNSE
- FFaker::SemVer
- FFaker::Skill
- FFaker::Sport
- FFaker::SportPL
- FFaker::SportUS
- FFaker::String
- FFaker::Time
- FFaker::Tweet
- FFaker::Unit
- FFaker::UnitEnglish
- FFaker::UnitMetric
- FFaker::Vehicle
- FFaker::Venue
- FFaker::Youtube
Classes
Class Methods
Defined in
- lib/ffaker.rb
- lib/ffaker/address.rb
- lib/ffaker/address_au.rb
- lib/ffaker/address_br.rb
- lib/ffaker/address_ca.rb
- lib/ffaker/address_ch.rb
- lib/ffaker/address_ch_de.rb
- lib/ffaker/address_ch_fr.rb
- lib/ffaker/address_ch_it.rb
- lib/ffaker/address_da.rb
- lib/ffaker/address_de.rb
- lib/ffaker/address_fi.rb
- lib/ffaker/address_fr.rb
- lib/ffaker/address_gr.rb
- lib/ffaker/address_id.rb
- lib/ffaker/address_in.rb
- lib/ffaker/address_ja.rb
- lib/ffaker/address_kr.rb
- lib/ffaker/address_mx.rb
- lib/ffaker/address_nl.rb
- lib/ffaker/address_pl.rb
- lib/ffaker/address_ru.rb
- lib/ffaker/address_se.rb
- lib/ffaker/address_sn.rb
- lib/ffaker/address_ua.rb
- lib/ffaker/address_uk.rb
- lib/ffaker/address_us.rb
- lib/ffaker/airline.rb
- lib/ffaker/animal.rb
- lib/ffaker/animal_cn.rb
- lib/ffaker/animal_es.rb
- lib/ffaker/animal_pl.rb
- lib/ffaker/animal_us.rb
- lib/ffaker/avatar.rb
- lib/ffaker/aws.rb
- lib/ffaker/bacon_ipsum.rb
- lib/ffaker/bank.rb
- lib/ffaker/book.rb
- lib/ffaker/boolean.rb
- lib/ffaker/cheesy_lingo.rb
- lib/ffaker/code.rb
- lib/ffaker/color.rb
- lib/ffaker/color_pl.rb
- lib/ffaker/color_ua.rb
- lib/ffaker/company.rb
- lib/ffaker/company_cn.rb
- lib/ffaker/company_it.rb
- lib/ffaker/company_ja.rb
- lib/ffaker/company_se.rb
- lib/ffaker/conference.rb
- lib/ffaker/courses.rb
- lib/ffaker/currency.rb
- lib/ffaker/dizzle_ipsum.rb
- lib/ffaker/education.rb
- lib/ffaker/education_cn.rb
- lib/ffaker/filesystem.rb
- lib/ffaker/food.rb
- lib/ffaker/food_pl.rb
- lib/ffaker/freedom_ipsum.rb
- lib/ffaker/gender.rb
- lib/ffaker/gender_br.rb
- lib/ffaker/gender_cn.rb
- lib/ffaker/gender_id.rb
- lib/ffaker/gender_ja.rb
- lib/ffaker/gender_jp.rb
- lib/ffaker/gender_kr.rb
- lib/ffaker/gender_pl.rb
- lib/ffaker/geolocation.rb
- lib/ffaker/guid.rb
- lib/ffaker/healthcare_ipsum.rb
- lib/ffaker/healthcare_ru.rb
- lib/ffaker/hipster_ipsum.rb
- lib/ffaker/html_ipsum.rb
- lib/ffaker/identification.rb
- lib/ffaker/identification_br.rb
- lib/ffaker/identification_es.rb
- lib/ffaker/identification_es_cl.rb
- lib/ffaker/identification_es_co.rb
- lib/ffaker/identification_in.rb
- lib/ffaker/identification_kr.rb
- lib/ffaker/identification_mx.rb
- lib/ffaker/identification_pl.rb
- lib/ffaker/identification_tw.rb
- lib/ffaker/image.rb
- lib/ffaker/internet.rb
- lib/ffaker/internet_se.rb
- lib/ffaker/job.rb
- lib/ffaker/job_br.rb
- lib/ffaker/job_cn.rb
- lib/ffaker/job_fr.rb
- lib/ffaker/job_ja.rb
- lib/ffaker/job_kr.rb
- lib/ffaker/job_vn.rb
- lib/ffaker/locale.rb
- lib/ffaker/lorem.rb
- lib/ffaker/lorem_ar.rb
- lib/ffaker/lorem_cn.rb
- lib/ffaker/lorem_fr.rb
- lib/ffaker/lorem_ie.rb
- lib/ffaker/lorem_ja.rb
- lib/ffaker/lorem_kr.rb
- lib/ffaker/lorem_pl.rb
- lib/ffaker/lorem_ru.rb
- lib/ffaker/lorem_ua.rb
- lib/ffaker/movie.rb
- lib/ffaker/music.rb
- lib/ffaker/name.rb
- lib/ffaker/name_ar.rb
- lib/ffaker/name_br.rb
- lib/ffaker/name_cn.rb
- lib/ffaker/name_cs.rb
- lib/ffaker/name_da.rb
- lib/ffaker/name_de.rb
- lib/ffaker/name_es.rb
- lib/ffaker/name_fr.rb
- lib/ffaker/name_ga.rb
- lib/ffaker/name_gr.rb
- lib/ffaker/name_id.rb
- lib/ffaker/name_in.rb
- lib/ffaker/name_it.rb
- lib/ffaker/name_ja.rb
- lib/ffaker/name_kh.rb
- lib/ffaker/name_kr.rb
- lib/ffaker/name_mx.rb
- lib/ffaker/name_nb.rb
- lib/ffaker/name_nl.rb
- lib/ffaker/name_ph.rb
- lib/ffaker/name_pl.rb
- lib/ffaker/name_ru.rb
- lib/ffaker/name_se.rb
- lib/ffaker/name_sn.rb
- lib/ffaker/name_th.rb
- lib/ffaker/name_th_en.rb
- lib/ffaker/name_tw.rb
- lib/ffaker/name_ua.rb
- lib/ffaker/name_vn.rb
- lib/ffaker/nato_alphabet.rb
- lib/ffaker/phone_number.rb
- lib/ffaker/phone_number_au.rb
- lib/ffaker/phone_number_br.rb
- lib/ffaker/phone_number_ch.rb
- lib/ffaker/phone_number_cu.rb
- lib/ffaker/phone_number_da.rb
- lib/ffaker/phone_number_de.rb
- lib/ffaker/phone_number_fr.rb
- lib/ffaker/phone_number_id.rb
- lib/ffaker/phone_number_it.rb
- lib/ffaker/phone_number_ja.rb
- lib/ffaker/phone_number_kr.rb
- lib/ffaker/phone_number_mx.rb
- lib/ffaker/phone_number_nl.rb
- lib/ffaker/phone_number_pl.rb
- lib/ffaker/phone_number_ru.rb
- lib/ffaker/phone_number_se.rb
- lib/ffaker/phone_number_sg.rb
- lib/ffaker/phone_number_sn.rb
- lib/ffaker/phone_number_tw.rb
- lib/ffaker/phone_number_ua.rb
- lib/ffaker/product.rb
- lib/ffaker/sem_ver.rb
- lib/ffaker/skill.rb
- lib/ffaker/sport.rb
- lib/ffaker/sport_pl.rb
- lib/ffaker/sport_us.rb
- lib/ffaker/ssn.rb
- lib/ffaker/ssn_mx.rb
- lib/ffaker/ssn_se.rb
- lib/ffaker/string.rb
- lib/ffaker/time.rb
- lib/ffaker/tweet.rb
- lib/ffaker/unit.rb
- lib/ffaker/unit_english.rb
- lib/ffaker/unit_metric.rb
- lib/ffaker/utils/array_utils.rb
- lib/ffaker/utils/module_utils.rb
- lib/ffaker/utils/random_utils.rb
- lib/ffaker/utils/unique_utils.rb
- lib/ffaker/vehicle.rb
- lib/ffaker/venue.rb
- lib/ffaker/youtube.rb
- lib/version.rb