class RuboCopConfigUpdater::CLI::Command::Base
Attributes
command_name[RW]
env[R]
options[RW]
stderr[RW]
Public Class Methods
by_command_name(name)
click to toggle source
# File lib/rubocop_config_updater/cli/command/base.rb, line 18 def by_command_name(name) @subclasses.detect { |s| s.command_name == name } end
by_errors(stderr)
click to toggle source
# File lib/rubocop_config_updater/cli/command/base.rb, line 22 def by_errors(stderr) @subclasses.detect { |s| s.fixes_error?(stderr) } end
fixes_error?(_stderr)
click to toggle source
# File lib/rubocop_config_updater/cli/command/base.rb, line 26 def fixes_error?(_stderr) false end
inherited(subclass)
click to toggle source
# File lib/rubocop_config_updater/cli/command/base.rb, line 14 def inherited(subclass) @subclasses << subclass end
new(options, stderr = '')
click to toggle source
# File lib/rubocop_config_updater/cli/command/base.rb, line 33 def initialize(options, stderr = '') @options = options @stderr = stderr end