Class: Extract::StringValue

Inherits:
Base
  • Object
show all
Defined in:
lib/src/extract/string_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/string_value.rb', line 5

def value
  path = node[:props][:path]
  return formatted_array_values(path) if path.is_a?(Array)

  extract_value(node)
end