Sha256: 73201e42c26bf46e29776c7ad3ccea29b7db9dbec9cd38d3b23fe383ef46af54
Contents?: true
Size: 151 Bytes
Versions: 3
Compression:
Stored size: 151 Bytes
Contents
module HappyMapper class TextNode < Item def find(node, _namespace, _xpath_options) yield(node.children.detect(&:text?)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
blockscore-happymapper-0.6.2 | lib/happymapper/text_node.rb |
blockscore-happymapper-0.6.1 | lib/happymapper/text_node.rb |
blockscore-happymapper-0.6.0 | lib/happymapper/text_node.rb |