Class: RandomPerson::Names::ScottishLast
- Inherits:
-
RandomPerson::Name
- Object
- RandomPerson::Name
- RandomPerson::Names::ScottishLast
- Defined in:
- lib/randomperson/Names/ScottishLast.rb
Instance Attribute Summary
Attributes inherited from RandomPerson::Name
#formats, #formats_ratiod, #names
Instance Method Summary collapse
-
#initialize ⇒ ScottishLast
constructor
A new instance of ScottishLast.
- #setupnames ⇒ Object
Methods inherited from RandomPerson::Name
Constructor Details
#initialize ⇒ ScottishLast
Returns a new instance of ScottishLast.
8 9 10 11 12 13 14 15 16 |
# File 'lib/randomperson/Names/ScottishLast.rb', line 8 def initialize @formats = { :single => ->(n) { n.rand }, :double_barrelled_hyphenated => ->(n) { n.rand + '-' + n.rand }, } @formats_ratiod = [ 0..99 ] setupnames end |
Instance Method Details
#setupnames ⇒ Object
18 19 20 |
# File 'lib/randomperson/Names/ScottishLast.rb', line 18 def setupnames @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 } end |