Method: Extract::Within#value

Defined in:
lib/src/extract/within.rb

#valueObject



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

def value
  props = node.props
  paths = extractor.paths_of(node.path, props[:within])
  return "" if paths.empty?

  HashBuilder.new(Node.new(props, paths.first), extractor).value
end