Sha256: a15e087486e3652590d08ddf5443a0754130a671a0bf45560de780961084a7b6

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

require 'mechanize'
class WWW::Mechanize::Page
  def links_to_other_documents(links_to_other_resources) # :nodoc:
    links_to_other_resources.map {|links_to_other_resource| get_attributes(links_to_other_resource.first,links_to_other_resource.last)}.flatten
  end
  
  def get_attributes(tag,attribute) # :nodoc:
    (self/tag).map{|alink| alink.attributes[attribute]}.compact
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
magellan-0.1.3 lib/magellan/extensions/mechanize_page.rb