Sha256: 3dd897b3e4d0f39e7d6b94e456e849c78e776ce4d5f7d5dd00e5988e8d531e71
Contents?: true
Size: 507 Bytes
Versions: 38
Compression:
Stored size: 507 Bytes
Contents
require 'librarian/lockfile/compiler' require 'librarian/lockfile/parser' module Librarian class Lockfile attr_accessor :environment private :environment= attr_reader :path def initialize(environment, path) self.environment = environment @path = path end def save(resolution) Compiler.new(environment).compile(resolution) end def load(string) Parser.new(environment).parse(string) end def read load(path.read) end end end
Version data entries
38 entries across 38 versions & 5 rubygems