Class: Opal::CliRunners::Server::App

Inherits:
SimpleServer show all
Defined in:
lib/opal/cli_runners/server.rb

Constant Summary

Constants inherited from SimpleServer

SimpleServer::NotFound

Instance Attribute Summary

Attributes inherited from SimpleServer

#index_path, #main

Instance Method Summary collapse

Methods inherited from SimpleServer

#append_path, #cache_invalidator, #call, #call_index, #call_js, #fetch_asset, #javascript_include_tag

Constructor Details

#initialize(options = {}) ⇒ App

Returns a new instance of App.



70
71
72
73
# File 'lib/opal/cli_runners/server.rb', line 70

def initialize(options = {})
  @builder = options.fetch(:builder)
  super
end

Instance Method Details

#builder(_) ⇒ Object



75
76
77
# File 'lib/opal/cli_runners/server.rb', line 75

def builder(_)
  @builder.call
end