Permalink
Browse files

Change useful? to piggyback on blank?

  • Loading branch information...
1 parent 1eb9ff2 commit 2b6b898981af3449f3e9c0be0c79de03b811691e @UnderpantsGnome committed Jun 16, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/useful.rb
View
@@ -10,7 +10,7 @@ def useless?; true end
class String
def useful?
- ((self.length == 0) || self !~ /\S/) ? false : true
+ ! self.blank?
end
def useless?

0 comments on commit 2b6b898

Please sign in to comment.