Class: JsonPath
- Inherits:
-
Object
- Object
- JsonPath
- Defined in:
- lib/jsonpath.rb,
lib/jsonpath/wrapper.rb,
lib/jsonpath/expression.rb
Defined Under Namespace
Classes: Expression, Wrapper
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
Class Method Details
.path(expression) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/jsonpath.rb', line 8 def self.path(expression) @expression = Expression.new(expression) if block_given? yield @expression else @expression end end |