Class: TapConfig
- Inherits:
-
Object
- Object
- TapConfig
- Defined in:
- tap.rb
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) ⇒ TapConfig
constructor
A new instance of TapConfig.
Constructor Details
#initialize(tap) ⇒ TapConfig
Returns a new instance of TapConfig.
922 923 924 |
# File 'tap.rb', line 922 def initialize(tap) @tap = tap end |
Instance Attribute Details
#tap ⇒ Object (readonly)
Returns the value of attribute tap.
920 921 922 |
# File 'tap.rb', line 920 def tap @tap end |
Instance Method Details
#[](key) ⇒ Object
926 927 928 929 930 931 |
# File 'tap.rb', line 926 def [](key) return unless tap.git? return unless Utils::Git.available? Homebrew::Settings.read key, repo: tap.path end |