installation

$ gem install imageurl

usage

require 'imageurl'

valid_url = ImageURL.valid_url?("http://yfrog.com/kjugqgbj")
# => true

valid_url = ImageURL.valid_url?("PUT A TWITPIC URL HERE")
# => true

valid_url = ImageURL.valid_url?("http://google.com")
# => false

example of usage in a Rails view:

image_tag ImageURL.image_url_for("http://yfrog.com/kjugqgbj")

license

MIT dude!

contributing

please do.