Created
July 11, 2018 17:45
-
-
Save RSchneider94/fb3549c8f687043c8a75c772d34cbdc9 to your computer and use it in GitHub Desktop.
My first Ruby on Rails Program
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
# A simple greeting method! :) | |
def greeting | |
puts "Please enter your name: "; | |
usrName = gets.chomp; | |
puts "Hello" + " " + usrName; | |
end | |
# Call the method | |
greeting; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment