lib/rgl/path_builder.rb in rgl-0.5.9 vs lib/rgl/path_builder.rb in rgl-0.5.10
- old
+ new
@@ -1,8 +1,8 @@
module RGL
- class PathBuilder # :nodoc:
+ class PathBuilder
def initialize(source, parents_map)
@source = source
@parents_map = parents_map
@paths = {}
@@ -14,10 +14,11 @@
else
@paths[target] = restore_path(target)
end
end
+ # @return [Hash]
def paths(targets)
paths_map = {}
targets.each do |target|
paths_map[target] = path(target)
@@ -35,6 +36,6 @@
path(parent) + [target] if parent
end
end
-end # RGL
\ No newline at end of file
+end # RGL