Tag: refinements

  • Refinements in Ruby: in map: super: no superclass method

    I was trying out refinements to see if they would help clean up some parsing code. I liked defining a couple of methods for the String class to respond to, but really didn’t want them as permanent monkey patches on String. And so, I had a pipe mapping module with refinements: module PipeMapping refine String…