Add *args to #respond_to?

Technically include_all = false, but *args is lazy mode.
bug/bundler_fix
William Vu 2016-02-02 14:29:35 -06:00
parent 48f72357b5
commit b28444777f
1 changed files with 4 additions and 0 deletions

View File

@ -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