Sha256: d36182971381677ac3500a22549e238d2eee9200e27a7ad6fc8246b04e400adf

Contents?: true

Size: 182 Bytes

Versions: 5

Compression:

Stored size: 182 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nokogiri-happymapper-0.10.0 lib/happymapper/text_node.rb
nokogiri-happymapper-0.9.0 lib/happymapper/text_node.rb
nokogiri-happymapper-0.8.1 lib/happymapper/text_node.rb
nokogiri-happymapper-0.8.0 lib/happymapper/text_node.rb
nokogiri-happymapper-0.7.0 lib/happymapper/text_node.rb