Document LockFile.

This commit is contained in:
Markus Reiter 2020-08-09 03:16:22 +02:00
parent 62c2ee332f
commit b7e96e6096

View File

@ -2,6 +2,9 @@
require "fcntl" require "fcntl"
# A lock file.
#
# @api private
class LockFile class LockFile
attr_reader :path attr_reader :path
@ -43,12 +46,18 @@ class LockFile
end end
end end
# A lock file for a formula.
#
# @api private
class FormulaLock < LockFile class FormulaLock < LockFile
def initialize(name) def initialize(name)
super("#{name}.formula") super("#{name}.formula")
end end
end end
# A lock file for a cask.
#
# @api private
class CaskLock < LockFile class CaskLock < LockFile
def initialize(name) def initialize(name)
super("#{name}.cask") super("#{name}.cask")