An instance method on String to swap two substrings together. In other words, instead of just replacing one with the other, it does it vice versa too.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install string_swap
'this and that'.swap 'this', 'that' => "that and this"
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)