Last active
February 21, 2019 18:18
-
-
Save venelrene/2ede022cb92fc0f1800fae2b89f73e76 to your computer and use it in GitHub Desktop.
Polycarpus works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of old songs and make dubstep remixes from them. Let's assume that a song consists of some number of words (that don't contain WUB). To make the dubstep remix of this song, Polycarpus inserts a cer…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'active_support/all' | |
| def song_decoder(song) | |
| song.gsub(/WUB/, " ").squish! | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment