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.


354
355
356
357
# File 'lib/msf/core/session.rb', line 354

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

Instance Attribute Details

#sessionObject

Returns the value of attribute session


369
370
371
# File 'lib/msf/core/session.rb', line 369

def session
  @session
end

Instance Method Details

#<<(val) ⇒ Object


359
360
361
362
# File 'lib/msf/core/session.rb', line 359

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

#delete(val) ⇒ Object


364
365
366
367
# File 'lib/msf/core/session.rb', line 364

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