Skip to content

Instantly share code, notes, and snippets.

@octocat
Created October 1, 2014 16:19
Show Gist options
  • Select an option

  • Save octocat/6cad326836d38bd3a7ae to your computer and use it in GitHub Desktop.

Select an option

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 Oct 18, 2025 via email

@Anthusia
Copy link

Anthusia commented Oct 18, 2025 via email

@bbbbaoaka-hue
Copy link

Kontol

@kromunum
Copy link

kromunum commented Nov 27, 2025 via email

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