Module: Datastar
- Defined in:
- lib/datastar/consts.rb,
lib/datastar.rb,
lib/datastar/railtie.rb,
lib/datastar/version.rb,
lib/datastar/dispatcher.rb,
lib/datastar/configuration.rb,
lib/datastar/async_executor.rb,
lib/datastar/rails_async_executor.rb,
lib/datastar/rails_thread_executor.rb,
lib/datastar/server_sent_event_generator.rb
Overview
This is auto-generated by Datastar. DO NOT EDIT.
Defined Under Namespace
Modules: Consts
Classes: AsyncExecutor, Configuration, Dispatcher, RailsAsyncExecutor, RailsThreadExecutor, Railtie, ServerSentEventGenerator, ThreadExecutor
Constant Summary
collapse
- BLANK_OPTIONS =
{}.freeze
- VERSION =
'1.0.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
9
10
11
|
# File 'lib/datastar.rb', line 9
def self.config
@config ||= Configuration.new
end
|
13
14
15
16
17
|
# File 'lib/datastar.rb', line 13
def self.configure(&)
yield config if block_given?
config.freeze
config
end
|
.from_rack_env(env, view_context: nil) ⇒ Object
23
24
25
26
|
# File 'lib/datastar.rb', line 23
def self.from_rack_env(env, view_context: nil)
request = Rack::Request.new(env)
Dispatcher.new(request:, view_context:)
end
|
.new ⇒ Object
19
20
21
|
# File 'lib/datastar.rb', line 19
def self.new(...)
Dispatcher.new(...)
end
|