Hi,

On 11-Dec-07, at 7:29 PM, Giles Bowkett wrote:

> http://utilitybelt.rubyforge.org/
>
> Features!
>
>    * Grep classes and methods for strings

Very nice!

A small problem with the grep_classes("num") functionality: the method  
blank? isn't defined on Strings in my default setup, and so an  
exception is thrown. I added this to the top of the language_greps.rb  
file

class String
   def blank?
     instance_method(:blank?) rescue def blank?
                                      self !~ /\S/
                                    end
   end
end

Cheers,
Bob

----
Bob Hutchison                  -- tumblelog at http://www.recursive.ca/so/
Recursive Design Inc.          -- weblog at http://www.recursive.ca/hutch
http://www.recursive.ca/       -- works on http://www.raconteur.info/cms-for-static-content/home/