Sha256: b35c09238e50dfd5617701fe34701ff9264ecaa7a981f00446219e08bdb667a1
Contents?: true
Size: 598 Bytes
Versions: 4
Compression:
Stored size: 598 Bytes
Contents
module Microformats2 module ImpliedProperty class Photo < Foundation def method_name "photo" end def to_s @to_s = Microformats2::AbsoluteUri.new(@base, super.to_s).absolutize end protected def name_map { "img" => "src", "object" => "data" } end def selector_map { ">img[src]:only-of-type" => "src", ">object[data]:only-of-type" => "data", ">:only-child>img[src]:only-of-type" => "src", ">:only-child>object[data]:only-of-type" => "data" } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems