Module: Arachni::Support::Mixins::Observable

Includes:
UI::Output, Utilities, MonitorMixin
Included in:
Browser, Data::Issues, Framework::Parts::Audit, HTTP::Client, Buffer::Base, Trainer
Defined in:
lib/arachni/support/mixins/observable.rb

Overview

Provides a flexible way to make any object observable for multiple events.

The observable classes use:

* `notify_<event>( *args )`

to notify observers of events.

The observers request notifications using:

* `observable.<event>( &block )`

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utilities

#available_port, #bytes_to_kilobytes, #bytes_to_megabytes, #caller_name, #caller_path, #cookie_decode, #cookie_encode, #cookies_from_document, #cookies_from_file, #cookies_from_response, #exception_jail, #exclude_path?, #follow_protocol?, #form_decode, #form_encode, #forms_from_document, #forms_from_response, #full_and_absolute_url?, #generate_token, #get_path, #hms_to_seconds, #html_decode, #html_encode, #include_path?, #links_from_document, #links_from_response, #normalize_url, #page_from_response, #page_from_url, #parse_set_cookie, #path_in_domain?, #path_too_deep?, #port_available?, #rand_port, #random_seed, #redundant_path?, #regexp_array_match, #remove_constants, #request_parse_body, #seconds_to_hms, #skip_page?, #skip_path?, #skip_resource?, #skip_response?, #to_absolute, #uri_decode, #uri_encode, #uri_parse, #uri_parse_query, #uri_parser, #uri_rewrite

Methods included from UI::Output

#debug?, #debug_off, #debug_on, #disable_only_positives, #included, #mute, #muted?, #only_positives, #only_positives?, #print_bad, #print_debug, #print_debug_backtrace, #print_debug_level_1, #print_debug_level_2, #print_debug_level_3, #print_error, #print_error_backtrace, #print_exception, #print_info, #print_line, #print_ok, #print_status, #print_verbose, #reroute_to_file, #reroute_to_file?, reset_output_options, #unmute, #verbose?, #verbose_on

Class Method Details

.included(base) ⇒ Object



32
33
34
# File 'lib/arachni/support/mixins/observable.rb', line 32

def self.included( base )
    base.extend ClassMethods
end

Instance Method Details

#initializeObject



54
55
56
57
58
# File 'lib/arachni/support/mixins/observable.rb', line 54

def initialize
    super

    @__observers = {}
end