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.
950 951 952 |
# File 'tap.rb', line 950 def initialize(tap) @tap = tap end |
Instance Attribute Details
#tap ⇒ Object (readonly)
Returns the value of attribute tap.
948 949 950 |
# File 'tap.rb', line 948 def tap @tap end |
Instance Method Details
#[](key) ⇒ Object
954 955 956 957 958 959 |
# File 'tap.rb', line 954 def [](key) return unless tap.git? return unless Utils::Git.available? Homebrew::Settings.read key, repo: tap.path end |