Skip to content

Commit

Permalink
Add missing @raise YARD tag for Mixins::HasPayload#payload=.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 9, 2024
1 parent ff67d08 commit cc97480
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ronin/exploits/mixins/has_payload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ def initialize(payload: nil, **kwargs)
# @return [Ronin::Payloads::Payload, String, nil]
# The new payload of the exploit.
#
# @raise [IncompatiblePayload]
# An incompatible payload object was given to the exploit.
#
def payload=(new_payload)
if new_payload.kind_of?(Payloads::Payload)
unless new_payload.kind_of?(self.class.payload_class)
Expand Down

0 comments on commit cc97480

Please sign in to comment.