lib/language_greps.rb in utility_belt-1.0.3 vs lib/language_greps.rb in utility_belt-1.0.4

- old
+ new

@@ -1,4 +1,13 @@ +# fix by Bob Hutchison: +class String + unless public_method_defined? :blank? + def blank? + self !~ /\S/ + end + end +end + # TODO: upgrade these to take either regexes or strings # http://gilesbowkett.blogspot.com/2006/12/smalltalk-cleverness-translated-into.html # http://gilesbowkett.com/blog_code_samples/122906_seaside_rails/controller.txt class Object