Method: Rex::Proto::Http::Handler::Erb#initialize
- Defined in:
- lib/rex/proto/http/handler/erb.rb
#initialize(server, root_path, opts = {}) ⇒ Erb
Initializes the ERB handler
28 29 30 31 32 33 34 35 |
# File 'lib/rex/proto/http/handler/erb.rb', line 28 def initialize(server, root_path, opts = {}) super(server) self.root_path = root_path self.opts = opts self.opts['MimeType'] = "text/html" unless self.opts['MimeType'] end |