Sha256: 3952cf398946b341fbf0b1649927bd02b24a8a4d4d33f2f3ca7f1ecac984c473
Contents?: true
Size: 684 Bytes
Versions: 15
Compression:
Stored size: 684 Bytes
Contents
# -*- coding: binary -*- module Rex module Proto module Http ### # # This class acts as the base class for all handlers. # ### class Handler require 'rex/proto/http/handler/erb' require 'rex/proto/http/handler/proc' # # Initializes the handler instance as being associated with the supplied # server. # def initialize(server) self.server = server end # # By default, handlers do not require a relative resource. # def self.relative_resource_required? false end # # Calls the class method. # def relative_resource_required? self.class.relative_resource_required? end protected attr_accessor :server # :nodoc: end end end end
Version data entries
15 entries across 15 versions & 3 rubygems