rspec by think200.com
Ruby
code posted
by
Robb Shecter
created at 06 Mar 08:12, updated at 09 Mar 06:22
Edit
|
Back
1
2
3
4
5
6
7 |
class Greeter
def initialize(name = "World")
@name = name
end
def say_hi
puts "Hello, #{@name}!"
end |
114 Bytes in 2 ms with coderay