Sha256: 08ba338f6e76ba4adcea1c0d1812918e8a282c38d8a395e31ab2cc306b4e1470

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

module Druid
  module Elements
    class Link < Element

      protected

      def self.finders
         super + [:href, :text, :css, :title]
      end

      def self.mapping
         super.merge({:link => :text, :link_text => :text})
      end
    end

    Druid::Elements.tag_to_class[:a] = Druid::Elements::Link
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
druid-ts-1.1.8 lib/druid/elements/link.rb
druid-ts-1.1.7 lib/druid/elements/link.rb
druid-ts-1.1.6 lib/druid/elements/link.rb
druid-ts-1.1.5 lib/druid/elements/link.rb
druid-ts-1.1.4 lib/druid/elements/link.rb