Class: Extract::ArrayValue

Inherits:
Base
  • Object
show all
Defined in:
lib/src/extract/array_value.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Extract::Base

Instance Method Details

#valueObject



5
6
7
8
9
10
# File 'lib/src/extract/array_value.rb', line 5

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