module DependencyGrapher::DeserializeDependencies
Public Instance Methods
call(filename = "dependencies.yml")
click to toggle source
TODO: extract filename defaults to constants
# File lib/dependency_grapher/deserialize_dependencies.rb, line 8 def call(filename = "dependencies.yml") dependencies = Set.new $/="\n\n" File.open(filename, "r").each do |object| begin dependencies << Dependency.deserialize(object) rescue raise $!, "Could not load object from #{filename}", $!.backtrace end end dependencies end