Module: RDocRuboCop::RuboCopModifier::RunnerModifier
- Includes:
- HijackSTDIN
- Defined in:
- lib/rdoc_rubocop/rubocop_modifier.rb
Instance Method Summary collapse
Methods included from HijackSTDIN
Instance Method Details
#find_target_files(paths) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rdoc_rubocop/rubocop_modifier.rb', line 24 def find_target_files(paths) file_paths, strs = paths.partition { |path| path.respond_to?(:source) } if file_paths.empty? super(strs) elsif strs.empty? file_paths else file_paths + super(strs) end end |