Sha256: aadec4532a00ededd23ed7762cdc5a057faea447eca03266e4c46ade392f348e

Contents?: true

Size: 267 Bytes

Versions: 2

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literal: true

module Extract
  class ArrayValue < Base
    def value
      props, path = node.to_h.values_at(:props, :path)
      props.map do |prop|
        ValueBuilder.new(Node.new(prop, path), extractor).value
      end.flatten
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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