Sha256: 8819ca80c307d780c1bc4053a37cf1262d6e68e92fc3ac6726bc5ebf928c0760
Contents?: true
Size: 738 Bytes
Versions: 9
Compression:
Stored size: 738 Bytes
Contents
module ProconBypassMan class ButtonsSettingConfiguration class MetadataLoader EMPTY_VERSION = '0.0.0' # @param [String] setting_path # @return [MetadataLoader] def self.load(setting_path: ) self.new(setting_path) end # @param [String] setting_path def initialize(setting_path) content = File.read(setting_path) if(matched = content.match(/metadata-required_pbm_version: ([\d.]+)/)) @required_pbm_version = matched[1] end end # @return [String] def required_pbm_version return EMPTY_VERSION unless defined?(@required_pbm_version) return @required_pbm_version if @required_pbm_version end end end end
Version data entries
9 entries across 9 versions & 1 rubygems