From 499d89f478b225327e6ef7858ac1a00a9549640b Mon Sep 17 00:00:00 2001 From: AI-Mozi Date: Fri, 30 Aug 2024 13:02:27 +0200 Subject: [PATCH] Add `OutputFormat#close` method --- lib/ronin/core/output_formats/output_format.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ronin/core/output_formats/output_format.rb b/lib/ronin/core/output_formats/output_format.rb index ab41364..ecd2d56 100644 --- a/lib/ronin/core/output_formats/output_format.rb +++ b/lib/ronin/core/output_formats/output_format.rb @@ -42,6 +42,13 @@ def <<(value) raise(NotImplementedError,"#{self.class}#<< was not implemented") end + # + # Closes the output file. Needs to be defined + # in a child class. + # + def close + end + end end end