class Masking::Config::TargetColumns::Method

Constants

MAPPING

rubocop:disable Layout/AlignHash

Public Class Methods

new(method) click to toggle source
# File lib/masking/config/target_columns/method.rb, line 13
def initialize(method)
  @method_type = mapping(method.class).new(method)
end

Private Instance Methods

mapping(klass) click to toggle source

rubocop:enable Layout/AlignHash

# File lib/masking/config/target_columns/method.rb, line 34
def mapping(klass)
  MAPPING[klass] || raise(UnknownType)
end