Class: Enumpath::Path::NormalizedPath

Inherits:
Array
  • Object
show all
Defined in:
lib/enumpath/path/normalized_path.rb

Overview

A utility for automatically normalizing string path expressions

Constant Summary collapse

FILTER_EXPRESSION_REGEX =
/[\['](\??\(.*?\))[\]']/
INDEX_NOTATION_REGEX =
/#([0-9]+)/

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ NormalizedPath



11
12
13
# File 'lib/enumpath/path/normalized_path.rb', line 11

def initialize(path)
  super(normalize(path))
end