lib/sdoc_all/parts/paths.rb in sdoc_all-1.0.4 vs lib/sdoc_all/parts/paths.rb in sdoc_all-1.0.5

- old
+ new

@@ -89,26 +89,25 @@ def entries @entries ||= [] end - module ClassMethods + class << self def common_path(paths) common = nil paths.each do |path| if common ||= path unless path.to_s.starts_with?(common.to_s) path.ascend do |path_part| - if common.to_s.starts_with?(path_part) + if common.to_s.starts_with?(path_part.to_s) common = path_part break end end end end end common = common.parent if common end end - extend ClassMethods end end