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
Methods inherited from Emitter
#alias_protected?, #fixed_boundary_valid?, #history_required?, #prepare_aliases, #record_history_unavailable, #record_history_walk, #reintroduction_boundary_valid?, #reviewed_range_state
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.
619 620 621 622 |
# File 'dev-cmd/advisory-match.rb', line 619 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.
625 626 627 |
# File 'dev-cmd/advisory-match.rb', line 625 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.
630 631 632 |
# File 'dev-cmd/advisory-match.rb', line 630 def finish Utils::Output.ohai "#{@count} candidate records" end |