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 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.
20 21 22 23 |
# File 'diagnostic/finding.rb', line 20 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.
17 18 19 |
# File 'diagnostic/finding.rb', line 17 def commands @commands end |
#text ⇒ 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.
14 15 16 |
# File 'diagnostic/finding.rb', line 14 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.
33 34 35 |
# File 'diagnostic/finding.rb', line 33 def to_h { commands:, text: } end |