Sha256: 596152a903de5f602e505d7cf52397a28baee8ae243a62b56de8219e69b44d56

Contents?: true

Size: 450 Bytes

Versions: 4

Compression:

Stored size: 450 Bytes

Contents

module Symbiont
  module WebObjects

    class Link < WebObject
      
      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

4 entries across 4 versions & 1 rubygems

Version Path
symbiont-0.1.7 lib/symbiont/web_objects/link.rb
symbiont-0.1.6 lib/symbiont/web_objects/link.rb
symbiont-0.1.5 lib/symbiont/web_objects/link.rb
symbiont-0.1.4 lib/symbiont/web_objects/link.rb