Sha256: 323ff0fdfcdd548c6c2e9f024db3a2270580730b1714b6064bae407a83abbf0c

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module FFaker
  module GenderID
    extend ModuleUtils
    extend self

    GENDERS = %w[laki-laki perempuan].freeze

    def random
      fetch_sample(GENDERS)
    end

    alias maybe random
    alias sample random
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffaker-2.11.0 lib/ffaker/gender_id.rb
ffaker-2.10.0 lib/ffaker/gender_id.rb
ffaker-2.9.0 lib/ffaker/gender_id.rb
ffaker-2.8.1 lib/ffaker/gender_id.rb
ffaker-2.8.0 lib/ffaker/gender_id.rb
ffaker-2.7.0 lib/ffaker/gender_id.rb