presentations/highlight-js/test/detect/ruby/default.txt

14 lines
177 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end
g = Greeter.new("world")
g.salute