If you would like to use string methods (like gsub) but you’re working with an integer… What can you do? Use a conversion method! For example: You can convert the Integer 1 to the String “1”. Then you can use methods from the converted class, which helps you do something that wasn’t possible before. In […]
The post How to Use Ruby Conversion Methods appeared first on RubyGuides. Don't miss your free gift here :)