Class: DirtySeed::Assigners::Boolean
- Defined in:
- lib/dirty_seed/assigners/boolean.rb
Overview
Draws a value matching validators
Instance Attribute Summary
Attributes inherited from Assigner
Instance Method Summary collapse
-
#value ⇒ Boolean
Returns a boolean.
Methods inherited from Assigner
Constructor Details
This class inherits a constructor from DirtySeed::Assigners::Assigner
Instance Method Details
#value ⇒ Boolean
Returns a boolean
9 10 11 |
# File 'lib/dirty_seed/assigners/boolean.rb', line 9 def value [true, false].sample end |