decko-commons/decko

View on GitHub
card/lib/card/subcards.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
90%

When using method_missing, fall back on super.
Open

    def method_missing method, *args
      return unless respond_to_missing?(method)

      @keys.send method, *args
    end
Severity: Minor
Found in card/lib/card/subcards.rb by rubocop

This cop checks for the presence of method_missing without also defining respond_to_missing? and falling back on super.

Example:

#bad
def method_missing(name, *args)
  # ...
end

#good
def respond_to_missing?(name, include_private)
  # ...
end

def method_missing(name, *args)
  # ...
  super
end

There are no issues that match your filters.

Category
Status