Class: TapConfig
Overview
Permanent configuration per Tap using git-config(1)
.
Instance Attribute Summary collapse
-
#tap ⇒ Object
readonly
Returns the value of attribute tap.
Instance Method Summary collapse
-
#[](key) ⇒ Object
-
#[]=(key, value) ⇒ Object
-
#delete(key) ⇒ Object
-
#initialize(tap) ⇒ void
constructor
Constructor Details
#initialize(tap) ⇒ void
1226 1227 1228 |
# File 'tap.rb', line 1226 def initialize(tap) @tap = tap end |
Instance Attribute Details
#tap ⇒ Object (readonly)
Returns the value of attribute tap.
1223 1224 1225 |
# File 'tap.rb', line 1223 def tap @tap end |
Instance Method Details
#[](key) ⇒ Object
1230 1231 1232 1233 1234 1235 |
# File 'tap.rb', line 1230 def [](key) return unless tap.git? return unless Utils::Git.available? Homebrew::Settings.read key, repo: tap.path end |