Sha256: 542a41bc68f1b9e365c58d9f38b5603cf0704c74f43e0452240dbcfcd3e1ca7a

Contents?: true

Size: 199 Bytes

Versions: 1

Compression:

Stored size: 199 Bytes

Contents

require 'hpricot'
class Hpricot::Elem
  def all_text
    text = ''
    children.each do |child|
      if child.respond_to? :content
        text << child.content
      end
    end
    text
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mechanize-0.6.0 lib/mechanize/hpricot.rb