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.
219 220 221 222 |
# File 'dev-cmd/advisory-match.rb', line 219 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.
225 226 227 |
# File 'dev-cmd/advisory-match.rb', line 225 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.
230 231 232 |
# File 'dev-cmd/advisory-match.rb', line 230 def finish Utils::Output.ohai "#{@count} candidate records" end |