Class: Enumpath::Path::NormalizedPath
- Inherits:
-
Array
- Object
- Array
- Enumpath::Path::NormalizedPath
- 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
-
#initialize(path) ⇒ NormalizedPath
constructor
A new instance of NormalizedPath.
Constructor Details
#initialize(path) ⇒ NormalizedPath
Returns a new instance of NormalizedPath.
11 12 13 |
# File 'lib/enumpath/path/normalized_path.rb', line 11 def initialize(path) super(normalize(path)) end |