From: "Martin J." Date: 2012-08-24T12:34:43+09:00 Subject: Would you merge repeating code even when it's get more complex? Hi, I wrote a module including some instance and class methods with are very similar. That means some lines do exactly the same once for instance and once for class methods. I started to refactor theses methods but the code got quite complex as a result. Please take a look at this module: https://github.com/mjio/uberhook/blob/master/lib/uberhook/base.rb#L43 Would you merge these methods to remove the repeating code even when the code gets more complex and harder to read? -- Posted via http://www.ruby-forum.com/.