Skip to content

Instantly share code, notes, and snippets.

@lynchmaniac
Created March 14, 2023 16:13
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 lynchmaniac/68fef30a19a65ead9e2bd4f7c02d5393 to your computer and use it in GitHub Desktop.
Save lynchmaniac/68fef30a19a65ead9e2bd4f7c02d5393 to your computer and use it in GitHub Desktop.
Exemple Asciidoc
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end
# Create a new object
g = Greeter.new("world")
# Output "Hello World!"
g.salute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment