module RDocRuboCop::RuboCopModifier::RunnerModifier

Public Instance Methods

find_target_files(paths) click to toggle source
Calls superclass method
# 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

Private Instance Methods

cached_run?() click to toggle source
# File lib/rdoc_rubocop/rubocop_modifier.rb, line 44
def cached_run?
  false
end
get_processed_source(file) click to toggle source
Calls superclass method
# File lib/rdoc_rubocop/rubocop_modifier.rb, line 38
def get_processed_source(file)
  hijack_stdin_opt(file) do
    super
  end
end