lib/jsonpath.rb in jsonpath-0.2.3 vs lib/jsonpath.rb in jsonpath-0.3.0
- old
+ new
@@ -43,9 +43,13 @@
end
end
end
def on(object)
+ enum_on(object).to_a
+ end
+
+ def enum_on(object)
JsonPath::Enumerable.new(self, object)
end
def self.on(object, path)
self.new(path).on(object)