Sha256: d2d9877c7aa11e78c376c858ec05d79c4b797dfc0849c1c6bcdb710e7322c86f

Contents?: true

Size: 152 Bytes

Versions: 9

Compression:

Stored size: 152 Bytes

Contents

module XmlMapper
  class TextNode < Item

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xmlmapper-0.7.2 lib/xmlmapper/text_node.rb
xmlmapper-0.7.1 lib/xmlmapper/text_node.rb
xmlmapper-0.7.0 lib/xmlmapper/text_node.rb
xmlmapper-0.6.5 lib/xmlmapper/text_node.rb
xmlmapper-0.6.4 lib/xmlmapper/text_node.rb
xmlmapper-0.6.3 lib/xmlmapper/text_node.rb
xmlmapper-0.6.2 lib/xmlmapper/text_node.rb
xmlmapper-0.6.1 lib/xmlmapper/text_node.rb
xmlmapper-0.6.0 lib/xmlmapper/text_node.rb