module FFaker::Boolean
Public Instance Methods
maybe()
click to toggle source
# File lib/ffaker/boolean.rb, line 8 def maybe case rand(0..1) when 0 then true when 1 then false end end
# File lib/ffaker/boolean.rb, line 8 def maybe case rand(0..1) when 0 then true when 1 then false end end