Ruby has the ability to re-open any class and change it’s methods. We can reopen any class and change how it works. This includes the standard Ruby classes like String, Array or Hash!. That is called monkey patching. Monkey patch would not change the software itself, but only the local copy while it’s being run.

Every class in Ruby has its own list of built-in methods. For example, a string has a whole list of methods: including #reverse which will reverse the order of the string, #count which will count how many characters are in the string, #empty? …

Yahya Gok

Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store