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


14
15
16
# File 'plugins/event_tester.rb', line 14

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

Instance Method Details

#respond_to?(name, *args) ⇒ Boolean

Returns:

  • (Boolean)

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

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