Sha256: 3ee9788c0236bae8180a630905e43f71edca0a226cc01708ce2b8e19aec1b297

Contents?: true

Size: 454 Bytes

Versions: 2

Compression:

Stored size: 454 Bytes

Contents

module Microformats2
  module Property
    class Url < Foundation

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

      protected

      def attr_map
        @attr_map = {
          "a" => "href",
          "area" => "href",
          "img" => "src",
          "object" => "data",
          "abbr" => "title",
          "data" => "value",
          "input" => "value" }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
microformats2-2.0.3 lib/microformats2/property/url.rb
microformats2-2.0.2 lib/microformats2/property/url.rb