What author calls "monkey patching" is in official Ruby lang website "about" -> "Ruby's Flexibility"[1] section. Rails framework makes use of it. Don't see the problem - it most definitely not frowned upon to extend built-in types like this.
[1]: https://www.ruby-lang.org/en/about/