Skip to content

Instantly share code, notes, and snippets.

@octocat
Created October 1, 2014 16:19
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save octocat/6cad326836d38bd3a7ae to your computer and use it in GitHub Desktop.
Save octocat/6cad326836d38bd3a7ae to your computer and use it in GitHub Desktop.
Hello world!
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello #{@name}!"
end
end
hello = HelloWorld.new("World")
hello.sayHi
@kromunum
Copy link

kromunum commented Dec 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment