タグ

解説とprogrammingに関するt-satのブックマーク (2)

  • IIJ Research Laboratory


     使 ...  使 IIJ
  • Refining Ruby

    Charles Oliver Nutter Java, Ruby, and JVM guy trying to make sense of it all What does the following code do? If you answered "it upcases two strings and adds them together, returning the result" you might be wrong because of a new Ruby feature called "refinements". Let's start with the problem refinements are supposed to solve: monkey-patching. Monkey-patching In Ruby, all classes are mutable. In

  • 1