--8323328-533281857-1130507344=:4288
Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-533281857-1130507344=:4288"
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323328-533281857-1130507344=:4288
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Hi --
Probably better to put it in Module.
def append_feathers
class_eval do
def fly
=09if %w(Penguin Dodo).include?self.class.to_s
Or:
if [Penguin, Dodo].include?(self.class)
though testing for class ancestry is kind of unducklike, isn't it?
=09 raise "I can't fly"
=09else
=09 puts "flap flap flap"
=09end
end
end
end
end
class Duck
append_feathers
end
class Dodo
append_feathers
end
Duck.new.fly
Dodo.new.fly
And now let's see whether upgrading pine will cause my reply to you
not to be all weird like they were in the past....
David
--=20
David A. Black
(e-mail address removed)
--8323328-533281857-1130507344=:4288--
--8323328-533281857-1130507344=:4288--