Module: Gitlab::SecretDetection::Utils::StrongMemoize::StrongMemoizeClassMethods

Defined in:
lib/gitlab/secret_detection/utils/memoize.rb

Instance Method Summary collapse

Instance Method Details

#strong_memoize_attr(method_name) ⇒ Object



83
84
85
86
87
# File 'lib/gitlab/secret_detection/utils/memoize.rb', line 83

def strong_memoize_attr(method_name)
  member_name = StrongMemoize.normalize_key(method_name)

  StrongMemoize.send(:do_strong_memoize, self, method_name, member_name) # rubocop:disable GitlabSecurity/PublicSend
end