Class: Homebrew::Diagnostic::Finding::Remediation Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.

Parameters:



20
21
22
23
# File 'diagnostic/finding.rb', line 20

def initialize(commands: [], text: "")
  @commands = commands
  @text = text
end

Instance Attribute Details

#commandsArray<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.

Returns:



17
18
19
# File 'diagnostic/finding.rb', line 17

def commands
  @commands
end

#textString

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.

Returns:



14
15
16
# File 'diagnostic/finding.rb', line 14

def text
  @text
end

Instance Method Details

#to_hHash{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.

Returns:



33
34
35
# File 'diagnostic/finding.rb', line 33

def to_h
  { commands:, text: }
end