class Rfix::CLI::Command::Config

Public Class Methods

new(rfix, *rest) click to toggle source
Calls superclass method
# File lib/rfix/cli/command/config.rb, line 9
def initialize(rfix, *rest)
  super(*rest)
  @rfix = rfix
end

Public Instance Methods

cop_enabled_at_line?(_, line) click to toggle source
# File lib/rfix/cli/command/config.rb, line 14
def cop_enabled_at_line?(_, line)
  @rfix.include?(processed_source.file_path, line) && super
rescue StandardError => e
  puts e.message
end