Determine if a string is collapsible: Difference between revisions

Content deleted Content added
Steenslag (talk | contribs)
Steenslag (talk | contribs)
→‎{{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 ',