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
- #<<(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.
189 190 191 192 |
# File 'dev-cmd/advisory-match.rb', line 189 def initialize super @records = T.let([], T::Array[T::Hash[Symbol, T.untyped]]) 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.
195 196 197 |
# File 'dev-cmd/advisory-match.rb', line 195 def <<(record) @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.
200 201 202 |
# File 'dev-cmd/advisory-match.rb', line 200 def finish puts JSON.pretty_generate(@records) end |