ruby initialize 返回对象 Posted on 2011-01-06 In Ruby initialize 返回的对象为类的实例,即使在此方法中写入其它类,也会返回类本身的实例 class Hi include Module2 include Module1 def initialize HelloWorld.new end def back_hello_world # back HelloWorld instance HelloWorld.new end end