Open Closed Principle in Ruby