Class: FactoryHelper::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/factory-helper.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.localeObject



27
28
29
# File 'lib/factory-helper.rb', line 27

def locale
  @locale || I18n.locale
end

.randomObject (readonly)

Returns the value of attribute random.



25
26
27
# File 'lib/factory-helper.rb', line 25

def random
  @random
end

Class Method Details

.seed=(seed) ⇒ Object



31
32
33
# File 'lib/factory-helper.rb', line 31

def seed=(seed)
  @random = seed ? Random.new(seed) : Random.new
end