Last active
September 14, 2019 14:24
-
-
Save GeoffCrittenden/fb7a6ef761e6d893fa2b1c075beb4f0a to your computer and use it in GitHub Desktop.
Fake dinosaur names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gem install faker | |
# more on faker: https://github.com/stympy/faker | |
require 'faker' | |
def fake_word | |
Faker::Lorem.word.capitalize | |
end | |
def dinosaur_suffix | |
%w[saurus opteryx ceratops mimus iraptor opod odon yonyx].sample | |
end | |
puts "#{fake_word}#{dinosaur_suffix}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment