Skip to content

Commit

Permalink
Add OutputFormat#close method
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi committed Aug 30, 2024
1 parent bf38482 commit 499d89f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ronin/core/output_formats/output_format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 499d89f

@postmodern
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add @abstract and a @since tag to the new method. Also merge into the 0.3.0 branch since it's a new method.

Please sign in to comment.