Sha256: 5d8d380dcb2e26ff861dce4760147459ab9c1f460ef407993002ae16e809eaa6
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module Masking class Config class TargetColumns class Method class String def initialize(value) @string = value @sequence = 0 end def call "'#{output}'".b end private attr_reader :string SEQUENTIAL_NUMBER_PLACEHOLDER = /%{n}/.freeze def output string.sub(SEQUENTIAL_NUMBER_PLACEHOLDER, sequence.to_s) end def sequence @sequence += 1 end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
masking-0.0.2 | lib/masking/config/target_columns/method/string.rb |
masking-0.0.1 | lib/masking/config/target_columns/method/string.rb |