>The show methods were quite handy before there were tools like firebug. Now
I never use them any more. Does any one?
I don't use the show methods, but the .to_s methods come in handy. Here is
my use case. Suppose you need to get some specific divs and you do
something like:
important_divs = @br.divs.select{|div|
div.class_name[/important_div_regexp/]}
Now, if I'm in irb, I might test this out to see if the important_divs are
really the ones I'm looking for, and the implementation of .to_s currently
lists the id and other important attributes. It's not clear in your
proposal if this would stop working like this and instead I would get the
normal ruby class name syntax. If this is the case, this would be less
functional and would cause me to do more work to iterate through
important_divs to check them out and see if they were what I wanted. IE Dev
toolbar and Firefox don't help here because I'm using it to debug my program
in irb.
We don't have to do any work to keep the .to_s methods do we? If not, why
should we remove them if they are useful for some and not harmful to others?
Alan
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development