Created
January 30, 2020 18:33
-
-
Save eduardopoleo/fe57b494678ed3d5d319ffe4e0e096fd to your computer and use it in GitHub Desktop.
My Rails 101 gist
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 HelloWorld | |
def initialize(name) | |
@name = name.capitalize | |
end | |
def sayHi | |
puts "Hello !" | |
end | |
end | |
hello = HelloWorld.new("World") | |
hello.sayHi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment