# File lib/vpim/vcard.rb, line 1415
      def delete_if #:yield: line
        begin
        @card.delete_if do |line|
          yield line
        end
        rescue NoMethodError
          # FIXME - this is a hideous hack, allowing a DirectoryInfo to
          # be passed instead of a Vcard, and for it to almost work. Yuck.
        end
      end