>>>>> "S" == Shannon Fang <xrfang / hotmail.com> 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