lib/js_dependency/mermaid/root.rb in js_dependency-0.3.2 vs lib/js_dependency/mermaid/root.rb in js_dependency-0.3.3
- old
+ new
@@ -30,10 +30,10 @@
"flowchart #{orientation}"
end
# @param [Integer] name_level
# @param [nil, String] src_path
- # @return [Array]
+ # @return [Array<String>]
def export_nodes(name_level: 1, src_path: nil)
nodes_links = if src_path
src_pathname = Pathname.new(src_path).realpath
@list.map do |nodes_link|
NodesLink.new(nodes_link.parent.exist? ? nodes_link.parent.relative_path_from(src_pathname.to_s) : nodes_link.parent.to_s,