Sha256: 4e4e366b4c07cee7ea5adb97f6a1cd2d491f3e0904f6cacc935860d8092e5071

Contents?: true

Size: 236 Bytes

Versions: 5

Compression:

Stored size: 236 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
xml_data_extractor-0.5.0 lib/src/extract/array_value.rb
xml_data_extractor-0.4.0 lib/src/extract/array_value.rb
xml_data_extractor-0.3.0 lib/src/extract/array_value.rb
xml_data_extractor-0.2.0 lib/src/extract/array_value.rb
xml_data_extractor-0.1.0 lib/src/extract/array_value.rb