Permalink
Browse files

ensure JsonDocument#search always returns an array

  • Loading branch information...
1 parent a1c72b3 commit 8daf4233dd229d67d8cb735a129d3a7075569fd0 @mislav committed Jan 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nibbler/json.rb
View
@@ -13,7 +13,7 @@ def self.[](obj)
end
def search(selector)
- Array === data ? data : at(selector)
+ Array === data ? data : Array(at(selector))
end
def at(selector)

0 comments on commit 8daf423

Please sign in to comment.