From: Friedrich Dominicus Date: 2002-09-17T16:12:56+09:00 Subject: Re: MVC and OO Design? Friedrich Dominicus writes: > jcb@iteris.com (MetalOne) writes: > > > Thanks to all for your help. > > > > I was really thinking very abstractly about a problem in my head that > > MVC kind of demonstrated. I was in search of deep answers in regards > > to when to include a function in a class and when not too. > > Ok now after a an abstract example an fully fledged Ruby MVC > application. I've used ruby-gnome and > > This is the application code > require 'lglade' > > class Controller > def initialize > @glade = GladeXML.new("mvc_ruby.glade"){|handler| > method(handler)} sorry, small glitch @window = @glade.widget("main_window") @window.signal_connect('destroy'){quit} One chould clean up after one's work is done. Friedrich