2013-12-09 32 views

回答

3

您可以使用类变量。

class Connection 
    def initialize 
    @@connection ||= # Start connectio 
    end 
end