Method: RandomPerson::Names::AnyLast#initialize
- Defined in:
- lib/randomperson/Names/AnyLast.rb
#initialize ⇒ AnyLast
Returns a new instance of AnyLast.
8 9 10 11 12 13 14 15 16 |
# File 'lib/randomperson/Names/AnyLast.rb', line 8 def initialize @formats = { :single => ->(n) { n.rand }, :double_barrelled_hyphenated => ->(n) { n.rand + '-' + n.rand }, } @formats_ratiod = [ (0..75), (76..99) ] setupnames end |