class Numeric
  def evenize(round="+")
    eval "self #{round} (self.modulo(2))"
...

Ruby Numeric#evenize

by scottburton11, November 18, 2009 03:21, 5 refactorings, tagged with ruby numeric

It almost feels stupid to d...

F9bf9d54441b20b8d880313b569cf88d Talk