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
- #emit(_record, revalidated: false, initial_introduction: false) ⇒ void private
- #finish ⇒ void private
- #initialize ⇒ void constructor private
Methods inherited from Emitter
#alias_protected?, #fixed_boundary_valid?, #history_required?, #prepare_aliases, #range_basis_changed?, #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.
1181 1182 1183 1184 |
# File 'dev-cmd/advisory-match.rb', line 1181 def initialize super @count = T.let(0, Integer) end |
Instance Method Details
#emit(_record, revalidated: false, initial_introduction: false) ⇒ 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.
1189 1190 1191 |
# File 'dev-cmd/advisory-match.rb', line 1189 def emit(_record, revalidated: false, initial_introduction: false) @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.
1194 1195 1196 |
# File 'dev-cmd/advisory-match.rb', line 1194 def finish Utils::Output.ohai "#{@count} candidate records" end |