11 lines
153 B
Ruby
11 lines
153 B
Ruby
|
# The Greeter class
|
||
|
class Greeter
|
||
|
def initialize(name)
|
||
|
@name = name.capitalize
|
||
|
end
|
||
|
|
||
|
def salute
|
||
|
puts "Hello #{@name}!"
|
||
|
end
|
||
|
end
|