From brian.takita at gmail.com Sun Feb 8 13:53:56 2009 From: brian.takita at gmail.com (Brian Takita) Date: Sun, 8 Feb 2009 10:53:56 -0800 Subject: [Erector-devel] Table Widget Message-ID: <1d7ddd110902081053wf809c88xea4a3b7cdec78da2@mail.gmail.com> The Erector project has a table widget, lib/erector/widgts/table.rb I added an rdoc example to the Table widget. From brian.takita at gmail.com Sun Feb 8 14:04:32 2009 From: brian.takita at gmail.com (Brian Takita) Date: Sun, 8 Feb 2009 11:04:32 -0800 Subject: [Erector-devel] Table Widget In-Reply-To: <1d7ddd110902081053wf809c88xea4a3b7cdec78da2@mail.gmail.com> References: <1d7ddd110902081053wf809c88xea4a3b7cdec78da2@mail.gmail.com> Message-ID: <1d7ddd110902081104ka16eda1vf76b9f140775b49b@mail.gmail.com> On Sun, Feb 8, 2009 at 10:53 AM, Brian Takita wrote: > The Erector project has a table widget, > lib/erector/widgts/table.rb > > I added an rdoc example to the Table widget. > I suppose that there can be some polish added, so the user does not need to create a class. http://gist.github.com/60463 This involves adding Widget.create and Widget.insert. .create instantiates a subclass and evaluates the block and .insert is equivalent to invoking #widget on the first argument. From brian.takita at gmail.com Sun Feb 8 14:06:35 2009 From: brian.takita at gmail.com (Brian Takita) Date: Sun, 8 Feb 2009 11:06:35 -0800 Subject: [Erector-devel] Table Widget In-Reply-To: <1d7ddd110902081104ka16eda1vf76b9f140775b49b@mail.gmail.com> References: <1d7ddd110902081053wf809c88xea4a3b7cdec78da2@mail.gmail.com> <1d7ddd110902081104ka16eda1vf76b9f140775b49b@mail.gmail.com> Message-ID: <1d7ddd110902081106v1d6d42e1k20f07ff3a52092b7@mail.gmail.com> On Sun, Feb 8, 2009 at 11:04 AM, Brian Takita wrote: > On Sun, Feb 8, 2009 at 10:53 AM, Brian Takita wrote: >> The Erector project has a table widget, >> lib/erector/widgts/table.rb >> >> I added an rdoc example to the Table widget. >> > I suppose that there can be some polish added, so the user does not > need to create a class. > > http://gist.github.com/60463 > > This involves adding Widget.create and Widget.insert. > .create instantiates a subclass and evaluates the block and .insert is > equivalent to invoking #widget on the first argument. > I think some "sexiness" can be derives by anonymous classes. People don't always want to create a class dedicated for a particular table. Most of the time, that code should be inline with the rest of the rendering. From brian.takita at gmail.com Mon Feb 9 01:16:14 2009 From: brian.takita at gmail.com (Brian Takita) Date: Sun, 8 Feb 2009 22:16:14 -0800 Subject: [Erector-devel] I checked in a list of reasons why I like to use Erector Message-ID: <1d7ddd110902082216l79174b01t84c77847e8cc152b@mail.gmail.com> Look in doc/why_i_use_erector.md Brian