Class: Homebrew::DevCmd::AdvisoryMatch::JsonEmitter 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.
1161 1162 1163 1164 |
# File 'dev-cmd/advisory-match.rb', line 1161 def initialize super @records = T.let([], T::Array[T::Hash[Symbol, T.untyped]]) 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.
1169 1170 1171 |
# File 'dev-cmd/advisory-match.rb', line 1169 def emit(record, revalidated: false, initial_introduction: false) @records << record 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.
1174 1175 1176 |
# File 'dev-cmd/advisory-match.rb', line 1174 def finish puts JSON.pretty_generate(@records) end |