box-o-sand/RubyFun/round0/hello.rb
Dan Buch 0a9428093c Add 'RubyFun/' from commit 'b01c6826131196ba58b5288a3182f2526c89c249'
git-subtree-dir: RubyFun
git-subtree-mainline: a04a502787
git-subtree-split: b01c682613
2013-01-09 23:50:14 -05:00

32 lines
362 B
Ruby

=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