From 9478d684f1002371fe26e6ba8edf11336619dff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Bieniek?= Date: Fri, 30 Aug 2024 22:51:15 +0200 Subject: [PATCH] Add `OutputFormat#close` method. (#55) --------- Co-authored-by: Postmodern --- lib/ronin/core/output_formats/output_format.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ronin/core/output_formats/output_format.rb b/lib/ronin/core/output_formats/output_format.rb index ab41364..905393d 100644 --- a/lib/ronin/core/output_formats/output_format.rb +++ b/lib/ronin/core/output_formats/output_format.rb @@ -42,6 +42,16 @@ def <<(value) raise(NotImplementedError,"#{self.class}#<< was not implemented") end + # + # Optional place holder method for closing any output file(s). + # + # @since 0.3.0 + # + # @abstract + # + def close + end + end end end