Ruby中类的一部分转为单独的类

  ClassPart = proc do
    <copy here code you want to move out of the main class>
  end

编程技巧