Class: DirtySeed::Assigners::Boolean

Inherits:
Assigner
  • Object
show all
Defined in:
lib/dirty_seed/assigners/boolean.rb

Overview

Draws a value matching validators

Instance Attribute Summary

Attributes inherited from Assigner

#attribute

Instance Method Summary collapse

Methods inherited from Assigner

#initialize

Constructor Details

This class inherits a constructor from DirtySeed::Assigners::Assigner

Instance Method Details

#valueBoolean

Returns a boolean

Returns:



9
10
11
# File 'lib/dirty_seed/assigners/boolean.rb', line 9

def value
  [true, false].sample
end