lib/jsonpath.rb in jsonpath-0.2.0 vs lib/jsonpath.rb in jsonpath-0.2.1
- old
+ new
@@ -46,6 +46,10 @@
def on(object)
JsonPath::Enumerable.new(self, object)
end
+ def self.on(object, path)
+ self.new(path).on(object)
+ end
+
end
- old
+ new