From: Phrogz Date: 2009-03-22T12:27:06+09:00 Subject: Re: Love poem in code for a Grooms Cake On Mar 21, 8:33 pm, p...@informatimago.com (Pascal J. Bourguignon) wrote: >     class Person >       attr_accessor :name >       def initialize(name) >          @name=name >       end >       def love(otherPerson) >          puts self.name+" loves "+otherPerson.name+"\n" >       end >     end > >     I=Person.new("Jen Switalski") >     you=Person.new("a programmer") >     while true >       I.love(you) >     end Let's tighten that up a bit, and remove the non-rubyesque camel casing. Person = Struct.new( :name ) do def love( other ) puts "#{self.name} loves #{other.name}" end end I = Person.new("Jen Switalski") you = Person.new("Bob") while true I.love(you) end Dunno if that'll fit on the cake, but it gets closer.