class Plumnailer::ImgUrlFilter

Decide whether to process images based on their url.

Constants

ImgUrlPatterns

Public Instance Methods

reject?(img_url) click to toggle source

Return true if this image url should not be considered.

# File lib/plumnailer/img_url_filter.rb, line 7
def reject?(img_url)
  ImgUrlPatterns.each do |re|
    return true  if img_url and img_url.to_s[re]
  end
  false
end