Sha256: 4905ac05d3f6a6c1aa7e079b99e1d032bf8a9e900cb3fe65a8b3bdf53afc26a9
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
module Faker VERSION = "1.7.0" require 'ffaker/utils/module_utils' extend ModuleUtils LETTERS = k('a'..'z') def self.numerify(number_string) number_string.gsub!(/#/) { rand(10).to_s } number_string end def self.letterify(letter_string) letter_string.gsub!(/\?/) { LETTERS.rand } letter_string end def self.bothify(string) letterify(numerify(string)) end autoload :Address, 'ffaker/address' autoload :AddressDE, 'ffaker/address_de' autoload :Company, 'ffaker/company' autoload :Education, 'ffaker/education' autoload :Internet, 'ffaker/internet' autoload :Lorem, 'ffaker/lorem' autoload :LoremCN, 'ffaker/lorem_cn' autoload :Name, 'ffaker/name' autoload :NameCN, 'ffaker/name_cn' autoload :NameRU, 'ffaker/name_ru' autoload :NameDE, 'ffaker/name_de' autoload :PhoneNumber, 'ffaker/phone_number' autoload :Product, 'ffaker/product' autoload :Geolocation, 'ffaker/geolocation' autoload :VERSION, 'ffaker/version' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffaker-1.7.0 | lib/ffaker.rb |