Class: PreCommit::Configuration::Providers::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/plugins/pre_commit/configuration/providers/env.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.priorityObject


6
7
8
# File 'lib/plugins/pre_commit/configuration/providers/env.rb', line 6

def self.priority
  30
end

Instance Method Details

#[](name) ⇒ Object


10
11
12
# File 'lib/plugins/pre_commit/configuration/providers/env.rb', line 10

def [](name)
  ENV[key(name)]
end

#update(name, value) ⇒ Object


14
15
16
# File 'lib/plugins/pre_commit/configuration/providers/env.rb', line 14

def update(name, value)
  ENV[key(name)] = value
end