Sha256: 795d9e9d7f1e64bc97f14e42708116a2992183a82070dd387e7c8feed45a5c76

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

module Druid
  module Elements
    class Link < Element

      #
      # return the href fot the link
      #
      def href
        element.href
      end

      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

3 entries across 3 versions & 1 rubygems

Version Path
druid-ts-1.2.2 lib/druid/elements/link.rb
druid-ts-1.2.1 lib/druid/elements/link.rb
druid-ts-1.2.0 lib/druid/elements/link.rb