You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
362 B
32 lines
362 B
16 years ago
|
=begin
|
||
|
|
||
|
OMG this be my comment
|
||
|
|
||
|
|
||
|
=end
|
||
|
|
||
|
|
||
|
class Greeter
|
||
|
def initialize(name="World")
|
||
|
@name = name
|
||
|
end
|
||
|
def say_hi
|
||
|
puts "Hi #{@name}!"
|
||
|
end
|
||
|
def say_bye
|
||
|
puts "Bye #{@name}, y'all come back now."
|
||
|
end
|
||
|
end
|
||
|
|
||
|
|
||
|
def main
|
||
|
grt = Greeter.new("Fizzle")
|
||
|
grt.say_hi()
|
||
|
grt.say_bye()
|
||
|
end
|
||
|
|
||
|
|
||
|
if __FILE__ == $0
|
||
|
main()
|
||
|
end
|