The second example is correct as well, as it is equivalent to
'abcd'.delete('a', 'b')
# => "abcd"

The documentation of String#delete says that it "Returns a copy of str 
with all characters in the intersection of its arguments deleted."
The intersection of 'a' and 'b' is an empty set.

-- 
Posted via http://www.ruby-forum.com/.