Add strategy pattern in Ruby