From: ts Date: 2002-12-05T20:16:46+09:00 Subject: Re: "methods" method >>>>> "S" == Shannon Fang writes: S> I tried String.methods-Kernel.methods in irb, found that most methods of S> String are inherited from Kernel. I don't know for methods like sub, gsub, No, you have found that it exist method with the same name in Kernel and String. These methods do the same thing but don't operate on the same receiver. S> split, strip, chomp... Are they String specific? Why they exist in Kernel? ruby is not an abstraction, these methods for example are usefull to write one-liners Guy Decoux