Sha256: cf26b30acb5a88c9594d376c4401a50636eb2df95983f79523db332cd582241b
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
module Laranja class Nome < Generator class << self def nome(sobrenomes = 1) strf([ '%female_first_name ' + ('%last_name ' * sobrenomes).strip, '%male_first_name ' + ('%last_name ' * sobrenomes).strip, '%female_first_name ' + ('%last_name ' * sobrenomes) + '%female_suffix', '%male_first_name ' + ('%last_name ' * sobrenomes) + '%male_suffix', ].sample) end def primeiro_nome strf([ '%female_first_name', '%male_first_name' ].sample) end def sobrenome strf('%last_name') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
laranja-2.0.1 | lib/laranja/generators/pt-BR/nome.rb |