Class: Extract::Within
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Extract::Base
Instance Method Details
#value ⇒ Object
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 |