mvz/happymapper

View on GitHub
lib/happymapper/text_node.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module HappyMapper
  class TextNode < Item
    def find(node, _namespace, _xpath_options)
      yield(node.children.detect(&:text?))
    end
  end
end