module PolyglotFaker

Constants

VERSION

Public Instance Methods

with_locale(locale, &block) click to toggle source
# File lib/polyglot_faker.rb, line 2
def with_locale(locale, &block)
  old_locale = ::Faker::Config.locale
  ::Faker::Config.locale = locale
  result = block.call
  ::Faker::Config.locale = old_locale
  result
end