# File lib/microformat.rb, line 257 def extract_license(doc) license = doc.at("[@rel=license]") rescue nil license.attributes['href'] if license.respond_to? :attributes end