Method: MechanizeContent::Image#interesting_file?
- Defined in:
- lib/mechanize_content/image.rb
#interesting_file? ⇒ Boolean
25 26 27 28 29 30 |
# File 'lib/mechanize_content/image.rb', line 25 def interesting_file? open(absolute_url, "rb") do |fh| is = ImageSize.new(fh.read) return valid_image?(is.width, is.height) end end |