Sha256: b89031c36bb4daef9991d6904956230ddc39e35120966cd0278efb437689ec09
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
require 'set' module DependencyGrapher module DeserializeDependencies module_function # TODO: extract filename defaults to constants 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dependency_grapher-0.1.1 | lib/dependency_grapher/deserialize_dependencies.rb |
dependency_grapher-0.1.0 | lib/dependency_grapher/deserialize_dependencies.rb |