Class: Zold::VersionFile
- Inherits:
-
Object
- Object
- Zold::VersionFile
- Defined in:
- lib/zold/version_file.rb
Overview
Read and write .zoldata/version.
Instance Method Summary collapse
- #apply(version) ⇒ Object
-
#initialize(path, log: Loog::NULL) ⇒ VersionFile
constructor
A new instance of VersionFile.
Constructor Details
#initialize(path, log: Loog::NULL) ⇒ VersionFile
Returns a new instance of VersionFile.
12 13 14 15 |
# File 'lib/zold/version_file.rb', line 12 def initialize(path, log: Loog::NULL) @path = path @log = log end |
Instance Method Details
#apply(version) ⇒ Object
20 21 22 |
# File 'lib/zold/version_file.rb', line 20 def apply(version) @log.info("Version #{version} doesn't need to be applied.") end |