Class: PreCommit::Checks::Plugin

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#configObject

Returns the value of attribute config.



10
11
12
# File 'lib/pre-commit/checks/plugin.rb', line 10

def config
  @config
end

#pluginatorObject

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

#nameObject



18
19
20
# File 'lib/pre-commit/checks/plugin.rb', line 18

def name
  class2string(class2name(self.class))
end