Module: DevSuite::Utils::Data::PathAccess::PathParser

Extended by:
PathParser
Included in:
PathParser
Defined in:
lib/dev_suite/utils/data/path_access/path_parser.rb

Instance Method Summary collapse

Instance Method Details

#parse(path) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/dev_suite/utils/data/path_access/path_parser.rb', line 10

def parse(path)
  return path if path.is_a?(Array)
  return parse_symbol_path(path) if path.is_a?(Symbol)
  return parse_string_path(path) if path.is_a?(String)

  [path]
end