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



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

def locale
  @locale || I18n.locale
end

.randomObject



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

def random
  @random || Random::DEFAULT
end

Class Method Details

.own_localeObject



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

def own_locale
  @locale
end