Class: RuboCop::RSpec::Guide::Plugin
- Inherits:
-
Object
- Object
- RuboCop::RSpec::Guide::Plugin
- Defined in:
- lib/rubocop/rspec/guide/plugin.rb
Overview
Plugin integration for RuboCop 1.72+
This class provides the modern plugin API for RuboCop.
It allows loading the gem via the plugins: configuration
in .rubocop.yml instead of the legacy require: approach.
Instance Method Summary collapse
-
#initialize(config = nil) ⇒ Plugin
constructor
Initialize the plugin.
-
#name ⇒ String
Plugin metadata.
-
#version ⇒ String
Plugin version.
Constructor Details
#initialize(config = nil) ⇒ Plugin
Initialize the plugin
25 26 27 |
# File 'lib/rubocop/rspec/guide/plugin.rb', line 25 def initialize(config = nil) @config = config end |
Instance Method Details
#name ⇒ String
Plugin metadata
32 33 34 |
# File 'lib/rubocop/rspec/guide/plugin.rb', line 32 def name "rubocop-rspec-guide" end |
#version ⇒ String
Plugin version
39 40 41 |
# File 'lib/rubocop/rspec/guide/plugin.rb', line 39 def version RuboCop::RSpec::Guide::VERSION end |