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
1028 1029 1030 |
# File 'tap.rb', line 1028 def initialize(tap) @tap = tap end |
Instance Attribute Details
#tap ⇒ Object (readonly)
Returns the value of attribute tap.
1025 1026 1027 |
# File 'tap.rb', line 1025 def tap @tap end |
Instance Method Details
#[](key) ⇒ Object
1032 1033 1034 1035 1036 1037 |
# File 'tap.rb', line 1032 def [](key) return unless tap.git? return unless Utils::Git.available? Homebrew::Settings.read key, repo: tap.path end |