DEV Community

Discussion on: What was your win this week?

Collapse
 
gayanhewa profile image
Gayan Hewa • Edited

Today I figured out out Ruby's string class has a .to function that replaces text like a charm. Saves time when compared with, having to iterate over a string and replace them one by one. Thanks to exercism.io