Class: PreCommit::Checks::Plugin
- Inherits:
-
Object
- Object
- PreCommit::Checks::Plugin
- Includes:
- Pluginator::Extensions::Conversions
- Defined in:
- lib/pre-commit/checks/plugin.rb,
lib/pre-commit/checks/plugin/config_file.rb
Direct Known Subclasses
Ci, Common, Go, GoBuild, GoFmt, Js, Json, Local, Migration, NbSpace, Rails, Rubocop, Ruby, Shell, Whitespace, Yaml
Defined Under Namespace
Classes: ConfigFile
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#pluginator ⇒ Object
Returns the value of attribute pluginator.
Instance Method Summary collapse
-
#initialize(pluginator, config, list) ⇒ Plugin
constructor
A new instance of Plugin.
- #name ⇒ Object
Constructor Details
#initialize(pluginator, config, list) ⇒ Plugin
Returns a new instance of Plugin.
12 13 14 15 16 |
# File 'lib/pre-commit/checks/plugin.rb', line 12 def initialize(pluginator, config, list) @pluginator = pluginator @config = config @list = list end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
10 11 12 |
# File 'lib/pre-commit/checks/plugin.rb', line 10 def config @config end |
#pluginator ⇒ Object
Returns the value of attribute pluginator.
10 11 12 |
# File 'lib/pre-commit/checks/plugin.rb', line 10 def pluginator @pluginator end |
Instance Method Details
#name ⇒ Object
18 19 20 |
# File 'lib/pre-commit/checks/plugin.rb', line 18 def name class2string(class2name(self.class)) end |