Class: EagerEye::Fixers::CountToSize

Inherits:
Base
  • Object
show all
Defined in:
lib/eager_eye/fixers/count_to_size.rb

Instance Attribute Summary

Attributes inherited from Base

#issue, #source_lines

Instance Method Summary collapse

Methods inherited from Base

#diff, #fix, #initialize

Constructor Details

This class inherits a constructor from EagerEye::Fixers::Base

Instance Method Details

#fixable?Boolean

Returns:

  • (Boolean)


6
7
8
9
# File 'lib/eager_eye/fixers/count_to_size.rb', line 6

def fixable?
  issue.detector == :count_in_iteration &&
    line_content&.include?(".count")
end