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



3
4
5
6
7
8
# File 'lib/src/extract/string_value.rb', line 3

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

  extract_value(node)
end