Sha256: a289d03aa90bfff8f0fa9dae8aa58ae55768d241bb9606b0ca1fd6b4c0ee8ef5

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

module Symbiont
  module WebObjects

    class Link < WebObject

      def initialize(web_object)
        @web_object = web_object
      end

      def self.usable_selectors
        super + [:href, :text, :title, :css]
      end
      
      def self.selector_mapping
        super.merge({:link => :text, :link_text => :text})
      end

    end # class: Link
    
    ::Symbiont::WebObjects.class_for_tag[:a] = ::Symbiont::WebObjects::Link
    
  end # module: WebObjects
end # module: Symbiont

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
symbiont-0.2.1 lib/symbiont/web_objects/link.rb
symbiont-0.2.0 lib/symbiont/web_objects/link.rb
symbiont-0.1.9 lib/symbiont/web_objects/link.rb