Last active
October 23, 2018 02:00
-
-
Save ihollander/00fc7aeaedfa9ec2a1eac71252cc1360 to your computer and use it in GitHub Desktop.
Thor step 3
This file contains 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
class HeroCLI < Thor | |
desc "superhero WEAKNESS", "Display a superhero and its weakness." | |
def superhero(weakness) | |
my_hero = "#{Faker::Superhero.name} #{Faker::Superhero.suffix}" | |
puts "#{my_hero} has been foiled again by #{weakness}!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment