Sha256: 1c6a0c1fd66d15e1d0e090533d9bb4e8b88ceef4cf686c46998c46432bc95b77
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true class Rustic::Configs::Check include Rustic::HooksExt attr_reader :check_unused, :read_data_subset, :with_cache def initialize @check_unused = false @read_data_subset = nil @with_cache = false end def check_unused! = @check_unused = true def with_cache! = @with_cache = true def subset(percent) raise ArgumentError, "percent must be > 0 and <= 100. Given: #{percent}" if percent <= 0 || percent > 100 @read_data_subset = percent end end
Version data entries
6 entries across 6 versions & 1 rubygems