Skip to content

Instantly share code, notes, and snippets.

@surjithctly
Created May 18, 2020 15:54
Show Gist options
  • Save surjithctly/31ab771cb96277a3629d298cc28be23d to your computer and use it in GitHub Desktop.
Save surjithctly/31ab771cb96277a3629d298cc28be23d 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