Sha256: 7f749ea17b2bcd366c2d7ee2c51c8c30d5fea2ef4d53de0c9d00ef9a19e6790b

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

module Microformats2
  module ImpliedProperty
    class Url < Foundation

      def method_name
        "url"
      end

      def to_s
        @to_s = Microformats2::AbsoluteUri.new(@base, super.to_s).absolutize
      end

      protected

      def name_map
        { "a" => "href" }
      end

      def selector_map
        { ">a[href]:only-of-type" => "href" }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
microformats2-2.9.0 lib/microformats2/implied_property/url.rb
microformats2-2.1.0 lib/microformats2/implied_property/url.rb
microformats2-2.0.3 lib/microformats2/implied_property/url.rb
microformats2-2.0.2 lib/microformats2/implied_property/url.rb
microformats2-2.0.1 lib/microformats2/implied_property/url.rb