Class: RouteArray

Inherits:
Array
  • Object
show all
Defined in:
lib/msf/core/session.rb

Overview

:nodoc: all

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sess) ⇒ RouteArray

Returns a new instance of RouteArray.


418
419
420
421
# File 'lib/msf/core/session.rb', line 418

def initialize(sess)
  self.session = sess
  super()
end

Instance Attribute Details

#sessionObject

Returns the value of attribute session


433
434
435
# File 'lib/msf/core/session.rb', line 433

def session
  @session
end

Instance Method Details

#<<(val) ⇒ Object


423
424
425
426
# File 'lib/msf/core/session.rb', line 423

def <<(val)
  session.framework.events.on_session_route(session, val)
  super
end

#delete(val) ⇒ Object


428
429
430
431
# File 'lib/msf/core/session.rb', line 428

def delete(val)
  session.framework.events.on_session_route_remove(session, val)
  super
end