Determine if a string is collapsible: Difference between revisions

→‎{{header|Ruby}}: Added small intro.
(→‎{{header|Ruby}}: Added Ruby)
(→‎{{header|Ruby}}: Added small intro.)
Line 835:
 
=={{header|Ruby}}==
This is built in since at least a decade under the method name 'squeeze'. squeeze(" ") would only squeeze spaces.
<lang ruby>strings = ["",
'"If I were two-faced, would I be wearing this one?" --- Abraham Lincoln ',
1,149

edits