Class: PreCommit::PluginsList

Inherits:
Object
  • Object
show all
Defined in:
lib/pre-commit/plugins_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configured_names, configured_remove, &block) ⇒ PluginsList

Returns a new instance of PluginsList.


10
11
12
13
14
# File 'lib/pre-commit/plugins_list.rb', line 10

def initialize(configured_names, configured_remove, &block)
  @configured_names  = configured_names
  @configured_remove = configured_remove
  @class_finder      = block
end

Instance Attribute Details

#configured_namesObject (readonly)

Returns the value of attribute configured_names


8
9
10
# File 'lib/pre-commit/plugins_list.rb', line 8

def configured_names
  @configured_names
end

#configured_removeObject (readonly)

Returns the value of attribute configured_remove


8
9
10
# File 'lib/pre-commit/plugins_list.rb', line 8

def configured_remove
  @configured_remove
end

Instance Method Details

#evaluated_namesObject


16
17
18
# File 'lib/pre-commit/plugins_list.rb', line 16

def evaluated_names
  evaluated_names_(evaluated_names_pairs).flatten.compact
end

#list_to_runObject


20
21
22
# File 'lib/pre-commit/plugins_list.rb', line 20

def list_to_run
  list_to_run_(evaluated_names_pairs).flatten.compact
end