Class: RandomPerson::Names::ScottishLast

Inherits:
RandomPerson::Name show all
Defined in:
lib/randomperson/names/scottish-last.rb

Constant Summary collapse

Names =
%w{ Wilson Scott Campbell Simpson Stewart Murray Robertson Graham Gibson Thomson Reid Grant Henderson Ross Mcdonald Hamilton Johnston Kennedy Davidson Macdonald Wallace Morrison Gordon Ferguson Fraser Black Duncan Kerr Paterson Douglas Allan Cameron Mclean Sinclair Craig Mckenzie Patterson Bruce Kay Mackenzie Johnstone Milne Turnbull Mckay Henry Dickson Mackay Ritchie Lindsay Muir Millar Spence Munro Mcmillan Christie Mcintyre Forbes Hay Donaldson Mcintosh Mcgregor Currie Jamieson Mcleod Maxwell Tait Blair Macleod Barr Beattie Logan Cowan Love Mcfarlane Aitken Firth Buchanan Ramsay Whyte Adamson Irvine Gee Rae Mackie Findlay Gunn Keen Barclay Halliday Mclaren Forsyth Nicol Baird Bain Montgomery Laing Mcculloch Knox Jeffrey Drummond }

Instance Attribute Summary

Attributes inherited from RandomPerson::Name

#formats, #formats_ratiod, #names, #possibles

Instance Method Summary collapse

Methods included from Outputter

included

Constructor Details

#initializeScottishLast

Returns a new instance of ScottishLast.



10
11
12
13
14
15
16
17
18
# File 'lib/randomperson/names/scottish-last.rb', line 10

def initialize
  @names = Names
  @formats = [
    ->(n)   { n.sample },
    ->(n)   { n.sample + '-' + n.sample },
  ]
  @formats_ratiod = [ 0..95, 96..99 ]
  super
end