Permalink
Browse files

Added SwissMatch::ZipCodes#empty?

  • Loading branch information...
1 parent cf52152 commit fd6c3dbff4582f587e29a35102aa70a2754daa16 @awd-switzerland awd-switzerland committed Apr 3, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/swissmatch/zipcodes.rb
@@ -246,6 +246,12 @@ def to_a
@zip_codes.dup
end
+ # @return [true, false] Whether this zip code collection contains any zip codes.
+ def empty?
+ @zip_codes.size.zero?
+ end
+ alias blank? empty?
+
# @private
# @see Object#inspect
def inspect

0 comments on commit fd6c3db

Please sign in to comment.