Class: RuboCop::Cop::Memosa::MethodSignature

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/cop/memosa.rb

Overview

This cop checks for memoized methods that accept arguments or yield.

Examples:

# bad
memoize def foo(a); end

# good
memoize def foo; end

Constant Summary collapse

MSG =

Returns:

  • (String)
"Memoized methods should not accept arguments or yield"