Class: EagerEye::Fixers::PluckToSelect
- Defined in:
- lib/eager_eye/fixers/pluck_to_select.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#fixable? ⇒ Boolean
This fixer only works for single-line pluck + where patterns Two-line patterns are too complex to fix automatically.
Methods inherited from Base
Constructor Details
This class inherits a constructor from EagerEye::Fixers::Base
Instance Method Details
#fixable? ⇒ Boolean
This fixer only works for single-line pluck + where patterns Two-line patterns are too complex to fix automatically
9 10 11 12 |
# File 'lib/eager_eye/fixers/pluck_to_select.rb', line 9 def fixable? issue.detector == :pluck_to_array && single_line_pattern? end |