Sha256: 84359f643b2eebc30a6cb40e47043d5d43d49f0edbf92c8495f454b0c4b67c26
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true module KStarter module Database # Handle access to project data and configuration JSON files class BaseModel attr_reader :folder attr_reader :backup_folder attr_reader :filename attr_reader :data # Split Config and Data into two classes def initialize(**args) @folder = args[:folder] || '~/.config' @folder = File.expand_path(folder) @backup_folder = File.join(folder, 'klue_backup') @filename = File.join(@folder, args[:file]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems