Sha256: 6a4414c2f1f1a55083d917f4aa89c7e8d4fd3ddba56ef724fca61f6f9ec714a6

Contents?: true

Size: 154 Bytes

Versions: 8

Compression:

Stored size: 154 Bytes

Contents

module HappyMapper
  class TextNode < Item

    def find(node, namespace, xpath_options)
      yield(node.children.detect{|c| c.text?})
    end
  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
nokogiri-happymapper-0.6.0 lib/happymapper/text_node.rb
xmlmapper-0.5.9 lib/happymapper/text_node.rb
instructure-happymapper-0.5.10 lib/happymapper/text_node.rb
nokogiri-happymapper-deiga-0.5.10 lib/happymapper/text_node.rb
nokogiri-happymapper-deiga-0.5.9 lib/happymapper/text_node.rb
nokogiri-happymapper-0.5.9 lib/happymapper/text_node.rb
nokogiri-happymapper-0.5.8 lib/happymapper/text_node.rb
nokogiri-happymapper-0.5.7 lib/happymapper/text_node.rb