Class: RandomPerson::Names::FinnishPrefix

Inherits:
RandomPerson::Name show all
Defined in:
lib/randomperson/names/finnish-prefix.rb

Constant Summary collapse

Names =
%w(herra Dr rouva neiti)

Instance Attribute Summary

Attributes inherited from RandomPerson::Name

#formats, #formats_ratiod, #names, #possibles

Instance Method Summary collapse

Methods included from Outputter

included

Constructor Details

#initializeFinnishPrefix

Returns a new instance of FinnishPrefix.



13
14
15
16
17
18
19
20
21
# File 'lib/randomperson/names/finnish-prefix.rb', line 13

def initialize
  @names = Names
  @formats = [ nil ]
  @formats_ratiod = [ 0..48, 49..50, 51..70, 71..99]
  @possibles = Hash[ @formats_ratiod.zip @names ]
  
  @on_execute = for_prefixes( @names[3], @names.first )
  super
end