Class: Homebrew::Diagnostic::Finding::Remediation Private
- Defined in:
- diagnostic/finding.rb
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Instance Attribute Summary collapse
- #commands ⇒ Array<String> readonly private
- #text ⇒ String readonly private
Instance Method Summary collapse
- #initialize(commands: [], text: "") ⇒ void constructor private
- #to_h ⇒ Hash{Symbol => String, Array<String>} private
Constructor Details
#initialize(commands: [], text: "") ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
18 19 20 21 |
# File 'diagnostic/finding.rb', line 18 def initialize(commands: [], text: "") @commands = commands @text = text end |
Instance Attribute Details
#commands ⇒ Array<String> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
15 16 17 |
# File 'diagnostic/finding.rb', line 15 def commands @commands end |
#text ⇒ String (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
12 13 14 |
# File 'diagnostic/finding.rb', line 12 def text @text end |
Instance Method Details
#to_h ⇒ Hash{Symbol => String, Array<String>}
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
31 32 33 |
# File 'diagnostic/finding.rb', line 31 def to_h { commands:, text: } end |