Class: PreCommit::Configuration::Providers::Default
- Inherits:
-
Object
- Object
- PreCommit::Configuration::Providers::Default
- Defined in:
- lib/plugins/pre_commit/configuration/providers/default.rb
Constant Summary collapse
- DEFAULTS =
{ :warnings => [], :checks => [:common, :rails] }
Class Method Summary collapse
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(defaults = nil) ⇒ Default
constructor
A new instance of Default.
- #update(name, value) ⇒ Object
Constructor Details
Class Method Details
.priority ⇒ Object
15 16 17 |
# File 'lib/plugins/pre_commit/configuration/providers/default.rb', line 15 def self.priority 0 end |
Instance Method Details
#[](name) ⇒ Object
23 24 25 |
# File 'lib/plugins/pre_commit/configuration/providers/default.rb', line 23 def [](name) @defaults[name] end |
#update(name, value) ⇒ Object
27 28 29 |
# File 'lib/plugins/pre_commit/configuration/providers/default.rb', line 27 def update(name, value) raise PreCommit::CanNotUpdateDefauls.new("Can not update default settings") end |