Sha256: 850ff54e906ecce1ecd1dec64ae5fd592f8028d2ed3dcb81eb35e54e6e89ec6f
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true module FFakerTW module NameIT extend ModuleUtils extend self PREFIX = %w[Sig. Sig.ra Sig.na Dr. Dott. Dott.ssa Prof. Prof.ssa].freeze # randomized? (ITALIAN) prefix! # def prefix fetch_sample(PREFIX) end def last_name fetch_sample(LAST_NAMES) end def first_name fetch_sample(FIRST_NAMES) end def name case rand(0..9) when 5, 7 then "#{prefix} #{first_name} #{last_name}" else "#{first_name} #{last_name}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | lib/ffakerTW/name_it.rb |