Class: Standard::DetectsFixability
- Inherits:
-
Object
- Object
- Standard::DetectsFixability
- Defined in:
- lib/standard/detects_fixability.rb
Instance Method Summary collapse
Instance Method Details
#call(offenses) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/standard/detects_fixability.rb', line 3 def call(offenses) offenses.any? { |offense| cop = cop_instance(offense.cop_name) cop.correctable? && cop.safe_autocorrect? } end |