socialforge/test/fixtures/files/2006/07/060719210727_source.rb

11 lines
153 B
Ruby

# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end