Class: Faker::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/faker.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.localeObject


26
27
28
# File 'lib/faker.rb', line 26

def locale
  @locale || I18n.locale
end

.randomObject


34
35
36
# File 'lib/faker.rb', line 34

def random
  @random || Random::DEFAULT
end

Class Method Details

.own_localeObject


30
31
32
# File 'lib/faker.rb', line 30

def own_locale
  @locale
end