Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hello World Examples
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
You can’t perform that action at this time.