Skip to content

Instantly share code, notes, and snippets.

@kshubham506
Created April 8, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kshubham506/f71326f5a6a36717723b5dc912db0ffb to your computer and use it in GitHub Desktop.
Save kshubham506/f71326f5a6a36717723b5dc912db0ffb to your computer and use it in GitHub Desktop.
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