Class: FactoryHelper::Config
- Inherits:
-
Object
- Object
- FactoryHelper::Config
- Defined in:
- lib/factory-helper.rb
Class Attribute Summary collapse
- .locale ⇒ Object
-
.random ⇒ Object
readonly
Returns the value of attribute random.
Class Method Summary collapse
Class Attribute Details
.locale ⇒ Object
27 28 29 |
# File 'lib/factory-helper.rb', line 27 def locale @locale || I18n.locale end |
.random ⇒ Object (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 |