Method: RandomPerson::Names::AnyLast#initialize
- Defined in:
- lib/randomperson/names/any-last.rb
#initialize ⇒ AnyLast
Returns a new instance of AnyLast.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/randomperson/names/any-last.rb', line 10 def initialize @names = Names @formats = [ ->(n) { n.sample }, ->(n) { n.sample + '-' + n.sample }, ] @formats_ratiod = [ (0..75), (76..99) ] super end |