Posts by Leonardo Olberg • 21 points
2 posts
-
1
votes2
answers296
viewsA: What’s the difference between downcase and downcase!
In the standard Ruby standart library, the Bang (!) means that it does not modify the variable that is calling the method. But there are other implementations for it, for example, in Active Record…
rubyanswered Leonardo Olberg 21 -
1
votes2
answers629
viewsA: Split by upper case letters
You can use the method split with the following regular expression: /(?=[A-ZÀ-Ú])/. It’ll look something like this: expression = 'EssaÉUmaFraseÇÁrvore' expression.split(/(?=[A-ZÀ-Ú])/) =>…
rubyanswered Leonardo Olberg 21