Class: Wtails::WebServer::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Wtails::WebServer::Server
- Defined in:
- lib/wtails/web_server.rb
Instance Method Summary collapse
Instance Method Details
#make_local_variables ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/wtails/web_server.rb', line 38 def make_local_variables { :files => WebSocket.servers.map { |s| [s.file, s.port] }, :wtailsrc => settings.wtailsrc, :host => URI.parse(request.url).host, } end |