The Factory design pattern implemented via Ruby meta-programming.