Class: Msf::Plugin::EventTester::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
plugins/event_tester.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



9
10
11
# File 'plugins/event_tester.rb', line 9

def method_missing(name, *args)
  $stdout.puts("Event fired: #{name}(#{args.join(', ')})")
end

Instance Method Details

#respond_to?(_name, *_args) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'plugins/event_tester.rb', line 4

def respond_to?(_name, *_args)
  # Why yes, I can do that.
  true
end