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: Log::VERBOSE) ⇒ VersionFile
constructor
A new instance of VersionFile.
Constructor Details
#initialize(path, log: Log::VERBOSE) ⇒ VersionFile
Returns a new instance of VersionFile.
29 30 31 32 |
# File 'lib/zold/version_file.rb', line 29 def initialize(path, log: Log::VERBOSE) @path = path @log = log end |
Instance Method Details
#apply(version) ⇒ Object
37 38 39 |
# File 'lib/zold/version_file.rb', line 37 def apply(version) @log.info("Version #{version} doesn't need to be applied.") end |