lib/rcap/extensions/string.rb in rcap-2.3.0 vs lib/rcap/extensions/string.rb in rcap-2.4.0
- old
+ new
@@ -24,6 +24,10 @@
# "one \"two words\" three".unpack_cap_list # => [ "one", "two words", "three" ]
# @see Array#to_s_for_cap
def unpack_cap_list
self.split( CAP_LIST_REGEX ).reject{ |match| match == "" || match =~ WHITESPACE_REGEX }
end
+
+ def blank?
+ empty?
+ end
end