Love U Ruby wrote in post #1126304:
> Andrew B. wrote in post #1126301:

> While the above worked,why not the below ?
>
> def del a
>   yield a,'c','b'
> end
> del 'abcd', &:delete
> # => "abcd"

got it from 
http://www.ruby-doc.org/core-2.0.0/String.html#method-i-delete

Returns a copy of str with all characters in the **intersection of its 
arguments** deleted.

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