Sha256: 07145176c7a1437aff44d6fca4451eeca1b60544942c82ac53761791b94b2292

Contents?: true

Size: 495 Bytes

Versions: 7

Compression:

Stored size: 495 Bytes

Contents

module Microformats2
  module ImpliedProperty
    class Photo < Foundation

      def method_name
        "photo"
      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

7 entries across 7 versions & 1 rubygems

Version Path
microformats2-2.0.1 lib/microformats2/implied_property/photo.rb
microformats2-2.0.0 lib/microformats2/implied_property/photo.rb
microformats2-2.0.0.pre5 lib/microformats2/implied_property/photo.rb
microformats2-2.0.0.pre4 lib/microformats2/implied_property/photo.rb
microformats2-2.0.0.pre3 lib/microformats2/implied_property/photo.rb
microformats2-2.0.0.pre2 lib/microformats2/implied_property/photo.rb
microformats2-2.0.0.pre1 lib/microformats2/implied_property/photo.rb