Class: Homebrew::DevCmd::AdvisoryMatch::CountEmitter Private
- Defined in:
- dev-cmd/advisory-match.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 Method Summary collapse
- #<<(_record) ⇒ void private
- #finish ⇒ void private
- #initialize ⇒ void constructor private
Constructor Details
#initialize ⇒ 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.
207 208 209 210 |
# File 'dev-cmd/advisory-match.rb', line 207 def initialize super @count = T.let(0, Integer) end |
Instance Method Details
#<<(_record) ⇒ 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.
This method returns an undefined value.
213 214 215 |
# File 'dev-cmd/advisory-match.rb', line 213 def <<(_record) @count += 1 end |
#finish ⇒ 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.
This method returns an undefined value.
218 219 220 |
# File 'dev-cmd/advisory-match.rb', line 218 def finish Utils::Output.ohai "#{@count} candidate records" end |