Class: PreCommit::PluginsList
- Inherits:
-
Object
- Object
- PreCommit::PluginsList
- Defined in:
- lib/pre-commit/plugins_list.rb
Instance Attribute Summary collapse
-
#configured_names ⇒ Object
readonly
Returns the value of attribute configured_names.
-
#configured_remove ⇒ Object
readonly
Returns the value of attribute configured_remove.
Instance Method Summary collapse
- #evaluated_names ⇒ Object
-
#initialize(configured_names, configured_remove, &block) ⇒ PluginsList
constructor
A new instance of PluginsList.
- #list_to_run ⇒ Object
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_names ⇒ Object (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_remove ⇒ Object (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_names ⇒ Object
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_run ⇒ Object
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 |