lib/ddql/string_refinements.rb in ddql-1.0.0 vs lib/ddql/string_refinements.rb in ddql-1.0.1
- old
+ new
@@ -1,7 +1,11 @@
module DDQL
module StringRefinements
refine String do
+ def blank?
+ empty? || strip.empty?
+ end
+
def squish
self.dup.squish!
end
def squish!