lib/random_data/locations.rb in random_data-1.1.0 vs lib/random_data/locations.rb in random_data-1.2.0

- old
+ new

@@ -2,12 +2,18 @@ # Defines methods to return random location data. module Locations - @@streetnames = %w( Park Washington Maple Oak Lincoln Walnut Elm Jefferson Highland Madison Pine Cedar Sunset Jackson Franklin Willow 3rd Wilson 2nd Laurel - 5th Chestnut 4th Adams Virginia Linden Woodland Cherry Rose 1st) + + trees = %w( Acacia Beech Birch Cedar Cherry Chestnut Elm Larch Laurel + Linden Maple Oak Pine Rose Walnut Willow) + people = %w( Adams Franklin Jackson Jefferson Lincoln + Madison Washington Wilson) + places = %w( Highland Hill Park Woodland Sunset Virginia) + numbers = %w( 1st 2nd 4th 5th ) + @@streetnames = trees + people + places + numbers @@street_types = %w(St Ave Rd Blvd Trl Ter Rdg Pl Pkwy Ct Circle) # Returns the first line of a US maiiling address (street number, street name, street type) # @@ -101,6 +107,6 @@ def city @@cities.rand end end -end \ No newline at end of file +end