Sha256: be080dd6449128a525feb595031a264c2da15a60e25a0145adb5592d50b5bc0f

Contents?: true

Size: 328 Bytes

Versions: 2

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

module Extract
  class Unescape < Base
    def unescape!
      unescape_tag = node.props[:unescape]

      paths_to_unescape = extractor.paths_of(node.path, unescape_tag)
      return if paths_to_unescape.empty?

      paths_to_unescape.each { |path| extractor.unescape!(path) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xml_data_extractor-0.7.0 lib/src/extract/unescape.rb
xml_data_extractor-0.6.0 lib/src/extract/unescape.rb