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



28
29
30
# File 'lib/faker.rb', line 28

def locale
  @locale || I18n.locale
end

.randomObject



36
37
38
# File 'lib/faker.rb', line 36

def random
  @random || Random::DEFAULT
end

Class Method Details

.own_localeObject



32
33
34
# File 'lib/faker.rb', line 32

def own_locale
  @locale
end