|
From: Archit B. <bi...@us...> - 2004-02-05 10:50:05
|
Hey
Nice idea with the cache-ing :-D. I read about it in the "Pickaxe Book"
just yesterday!
Archit
P.S. Hey so is there no way GladeXMLSugar (in whatever form) is being included?
Masao Mutoh <mu...@hi...> writes:
> Hi,
>
> On 02 Feb 2004 13:24:16 -0500
> Archit Baweja <bi...@us...> wrote:
>
> > Ok here's the changed patch with the "SUPAH DUPAH" (As I so eloquently put it
> > :-D) out of it. Changed #widget_names to use regular expressions.
>
> Thanks. Applied.
> And I improved it to cache the method names.
>
> def widget_names(nocache = false)
> @widget_names = [] if nocache || ! @widget_names
> if @widget_names.size == 0
> regexp = Regexp.new("<widget class=\".*\" id=\"(.*)\"")
> IO.readlines(filename).each { |line|
> if md = regexp.match(line)
> @widget_names << md[1]
> end
> }
> end
> @widget_names
> end
>
>
> --
> .:% Masao Mutoh<mu...@hi...>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> ruby-gnome2-devel-en mailing list
> rub...@li...
> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en
|