lib/jsonpath.rb in jsonpath-0.3.3 vs lib/jsonpath.rb in jsonpath-0.4.0

- old
+ new

@@ -1,6 +1,7 @@ require 'strscan' +require 'jsonpath/proxy' require 'jsonpath/enumerable' require 'jsonpath/version' class JsonPath @@ -59,6 +60,9 @@ def self.on(object, path, opts = nil) self.new(path, opts).on(object) end + def self.for(obj) + Proxy.new(obj) + end end