class Librarian::Lockfile

Attributes

environment[RW]
path[R]

Public Class Methods

new(environment, path) click to toggle source
# File lib/librarian/lockfile.rb, line 11
def initialize(environment, path)
  self.environment = environment
  @path = path
end

Public Instance Methods

load(string) click to toggle source
# File lib/librarian/lockfile.rb, line 20
def load(string)
  Parser.new(environment).parse(string)
end
read() click to toggle source
# File lib/librarian/lockfile.rb, line 24
def read
  load(path.read)
end
save(resolution) click to toggle source
# File lib/librarian/lockfile.rb, line 16
def save(resolution)
  Compiler.new(environment).compile(resolution)
end