Sha256: e064104cbad33f6dc75a36b395db5cdfbf806d0435117a2fb992ce7d9da5dae3

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

module Celerity
  class Link < Element
    
    TAGS = [ Identifier.new('a') ]
    ATTRIBUTES = BASE_ATTRIBUTES | [:charset, :type, :name, :href, :hreflang, 
                                    :target, :rel, :rev, :accesskey, :shape, 
                                    :coords, :tabindex, :onfocus, :onblur]
    DEFAULT_HOW = :href
    
    # clicks the link
    def click
      assert_exists
      @container.update_page @object.click
    end
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
celerity-0.0.4 lib/celerity/elements/link.rb