Sha256: 77822626960133db5a734443e95f41b9401f00f704e7eba2145ce3c757cccd28
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true module FFakerTW module NameDE include FFakerTW::Name extend ModuleUtils extend self PREFIXES = %w[Herr Frau Dr. Prof.].freeze def name case rand(0..9) when 0 then "#{prefix} #{first_name} #{last_name}" else "#{first_name} #{last_name}" end end def first_name fetch_sample(FIRST_NAMES) end def last_name fetch_sample(LAST_NAMES) end def prefix fetch_sample(PREFIXES) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | lib/ffakerTW/name_de.rb |