Sha256: 0d21b0c3bbe60861e16560901e83977bf0fc53c2bca40281bfc35da250c6dbef

Contents?: true

Size: 198 Bytes

Versions: 1

Compression:

Stored size: 198 Bytes

Contents

# encoding: utf-8

module Faker
  module Boolean
    extend ModuleUtils
    extend self

    def maybe
      case rand(2)
      when 0 then true
      when 1 then false
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffaker-1.25.0 lib/ffaker/boolean.rb