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:



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

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:



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

def commands
  @commands
end

#textString (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:



12
13
14
# File 'diagnostic/finding.rb', line 12

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:



31
32
33
# File 'diagnostic/finding.rb', line 31

def to_h
  { commands:, text: }
end