Test

Ruby code posted by Heinz
created at 29 Jan 01:27, updated at 01 Jul 02:28

Edit | Back
1
2
3
4
5
6
7
8
9
10
# The Greeter class
class Greeter
  def initialize(name)
    @name = name.capitalize
  end

  def salute
    puts "Hello #{@name}!" 
  end
end
151 Bytes in 4 ms with coderay