Sha256: b1909ac99d7fb202e45b1027b4a35a3b2b2096b8e1b5f7b2e77eb8d4e5304dcd

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

module AttrMasker
  module Maskers
    # This default masker simply replaces any value with a fixed string.
    #
    # +opts+ is a Hash with the key :value that gives you the current attribute
    # value.
    #
    class Simple
      def call(_opts)
        "(redacted)"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attr_masker-0.2.1 lib/attr_masker/maskers/simple.rb
attr_masker-0.2.0 lib/attr_masker/maskers/simple.rb