Enumpath navigates nested Ruby objects with JSONPath-style path expressions written as plain strings. It works on the data you actually have in memory: hashes with symbol, string or integer keys, arrays, Structs, plain objects and OpenStructs, in any mix. It is like Ruby's native dig, but a path can use wildcards, filters, slices, unions and recursive descent, so it can live in configuration or a database and change without a deploy. Paths are safe by default: a path can read your data but cannot call mutating methods such as clear or destroy. Only accept paths from sources you trust.
Required Ruby Version
>= 2.6.0
Authors
Chris Bloom
Versions
-
0.4.0
-
source
- 0.4.0 source November 19, 2026 (38.5 KB)
-
-
0.3.0
-
source
- 0.3.0 source November 19, 2026 (36 KB)
-
-
0.2.1
-
source
- 0.2.1 source November 19, 2026 (33.5 KB)
-
-
0.2.0
-
source
- 0.2.0 source November 19, 2026 (32.5 KB)
-
-
0.1.2
-
source
- 0.1.2 source April 07, 2021 (29 KB)
-