Refactor your switch statements with case_register
case_register is a gem that provides a design pattern to manage switch statements by mapping each case to a method which is dynamically defined in advance.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
case_register is a gem that provides a design pattern to manage switch statements by mapping each case to a method which is dynamically defined in advance.
Post a comment