Method: Buby::MessageEditorTab#initialize

Defined in:
lib/buby/message_editor_tab.rb

#initialize(controller, editable) ⇒ IMessageEditorTab

This method is abstract.

subclass and call super

Burp will call this method once for each HTTP message editor, and the factory should provide a new instance of an IMessageEditorTab object.

Parameters:

  • controller (IMessageEditorController)

    An object which the new tab can query to retrieve details about the currently displayed message. This may be nil for extension-invoked message editors where the extension has not provided an editor controller.

  • editable (Boolean)

    Indicates whether the hosting editor is editable or read-only.



15
16
17
18
# File 'lib/buby/message_editor_tab.rb', line 15

def initialize controller, editable
  @controller = controller
  @editable = editable
end