[Erector-devel] little tidbits I noticed while frolicking through the code
Brian Takita
brian.takita at gmail.com
Tue Apr 21 01:20:49 EDT 2009
On Mon, Apr 20, 2009 at 7:23 PM, Alex Chaffee <alex at pivotallabs.com> wrote:
> Widget#inspect just calls to_s. Is this useful? Do we want some other
> debugging info to appear instead?
>
> Widget#join -- is anyone using this? Also the rdoc says it works on
> "strings, which are quoted and output"
> -- but this is not really true, right? They're not quoted, just
> html-escaped like any text.
>
> Widget#after_initialize -- is anyone using this feature? It's not tested.
The idea behind this is that the initialize method is important for
the widget to run.
It saves the programmer from having to invoke super in correct
location in #initialize.
AR follows this approach, so I think I assumed that it was a common
(and nice to have) pattern. I'd like to hear if its useful to anybody
else.
I don't use it myself.
I cannot think of why it was not tested. It was probably an oversight
of some sort.
>
>
> ---
> Alex Chaffee - alex at stinky.com
> Stalk me: http://friendfeed.com/alexch | http://twitter.com/alexch |
> http://alexch.tumblr.com
> _______________________________________________
> Erector-devel mailing list
> Erector-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/erector-devel
>
More information about the Erector-devel
mailing list