Skip to content

Commit

Permalink
Add *args to #respond_to?
Browse files Browse the repository at this point in the history
Technically include_all = false, but *args is lazy mode.
  • Loading branch information
wvu committed Feb 2, 2016
1 parent 48f7235 commit b284447
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/event_tester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ module Msf

class Plugin::EventTester < Msf::Plugin
class Subscriber
def respond_to?(name, *args)
# Why yes, I can do that.
true
end
def method_missing(name, *args)
$stdout.puts("Event fired: #{name}(#{args.join(", ")})")
end
Expand Down

0 comments on commit b284447

Please sign in to comment.