Sha256: fb3dd540e345c24b21471e8beb85561cfe752a2c0a91b0bff949d6bab79868c6
Contents?: true
Size: 699 Bytes
Versions: 1
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true require 'masking/config/target_columns' module Masking class << self def config @config ||= Config.new end def configure yield config end end class Config DEFAULT_TARGET_COLUMNS_YAML_PATH = Pathname('masking.yml') attr_reader :target_columns_file_path def initialize @target_columns_file_path = DEFAULT_TARGET_COLUMNS_YAML_PATH end def target_columns_file_path=(val) @target_columns_file_path = Pathname(val) @target_columns = TargetColumns.new(target_columns_file_path) end def target_columns @target_columns ||= TargetColumns.new(target_columns_file_path) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
masking-0.0.1 | lib/masking/config.rb |