Skip to content

Commit b284447

Browse files
committed
Add *args to #respond_to?
Technically include_all = false, but *args is lazy mode.
1 parent 48f7235 commit b284447

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/event_tester.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ module Msf
77

88
class Plugin::EventTester < Msf::Plugin
99
class Subscriber
10+
def respond_to?(name, *args)
11+
# Why yes, I can do that.
12+
true
13+
end
1014
def method_missing(name, *args)
1115
$stdout.puts("Event fired: #{name}(#{args.join(", ")})")
1216
end

0 commit comments

Comments
 (0)