lib/depth/enumeration/node.rb in depth-0.1.0 vs lib/depth/enumeration/node.rb in depth-0.3.0
- old
+ new
@@ -13,9 +13,13 @@
current = current.parent
end
route.reverse
end
+ def humanized_route
+ route.map(&:key_or_index)
+ end
+
def next
if array?
val = fragment[current_index]
else
val = fragment[fragment.keys[current_index]]