Mega Code Archive

 
Categories / Ruby / String
 

Substitutions

puts "foobar".sub('bar', 'foo')