/ Published in: Ruby
                    
                                        
Works fine for MacRuby applications
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
class NewClass
@@sharedController = nil
def self.sharedController
@@sharedController
end
def initialize
@@sharedController = self
end
end
Comments
 Subscribe to comments
                    Subscribe to comments
                
                