lib/server.rb in rubrowser-0.1.4 vs lib/server.rb in rubrowser-0.1.5

- old
+ new

@@ -5,17 +5,17 @@ module Rubrowser class Server < WEBrick::HTTPServer include ERB::Util - def self.start(paths) - new(paths).start + def self.start(options = {}) + new(options).start end - def initialize(paths) - super Port: 9000 + def initialize(options) + super Port: options[:port] - @data = Rubrowser::Data.new(paths) + @data = Rubrowser::Data.new(options[:files]) @data.parse mount_proc '/' do |req, res| res.body = root(req.path) end