12
13
14
15
16
17
18
|
# File 'lib/ffakerTW/company.rb', line 12
def name
case rand(0..2)
when 0 then "#{Name.last_name} #{suffix}"
when 1 then "#{Name.last_name}-#{Name.last_name}"
when 2 then format('%s, %s and %s', Name.last_name, Name.last_name, Name.last_name)
end
end
|