def ads_with_title(title)
      return enum_for(:ads_with_title,title) unless block_given?

      comparitor = if title.kind_of?(Regexp)
                     lambda { |ad| ad.title =~ title }
                   else
                     lambda { |ad| ad.title == title }
                   end

      return ads_with do |ad|
        if comparitor.call(ad)
          yield ad

          true
        end
      end
    end
def ads_with_title(title)
      return enum_for(:ads_with_title,title) unless block_given?

      comparitor = if title.kind_of?(Regexp)
                     lambda { |ad| ad.title =~ title }
                   else
                     lambda { |ad| ad.title == title }
                   end

      return ads_with do |ad|
        if comparitor.call(ad)
          yield ad

          true
        end
      end
    end
Selects the ads with the matching title.

 @param [String, Regexp] title
   The title to search for.

 @yield [ad]
   Each matching ad will be passed to the given block.

 @yieldparam [SponsoredAd] ad
   A sponsored ad with the matching title.

 @return [Array, Enumerator]
   The sponsored ads with the matching title. If no block is given,
   an Enumerator object will be returned.

 @example
   sponsored.ads_with_title('be attractive')
   # => SponsoredLinks

 @example
   sponsored.ads_with_title(/buy me/) do |ad|
     puts ad.url
   end