Module: Y::Actioncable

Defined in:
lib/y/actioncable.rb,
lib/y/actioncable/sync.rb,
lib/y/actioncable/config.rb,
lib/y/actioncable/engine.rb,
lib/y/actioncable/version.rb,
lib/y/actioncable/reliable.rb,
lib/y/actioncable/config/option.rb,
lib/y/actioncable/config/validations.rb,
lib/y/actioncable/config/abstract_builder.rb

Defined Under Namespace

Modules: Reliable, Sync Classes: Config, Engine, MissingConfiguration, MissingConfigurationBuilderClass

Constant Summary collapse

VERSION =
"0.1.7"

Class Method Summary collapse

Class Method Details

.configurationObject Also known as: config



24
25
26
# File 'lib/y/actioncable/config.rb', line 24

def configuration
  @config || (raise MissingConfiguration)
end

.configure(&block) ⇒ Object



20
21
22
# File 'lib/y/actioncable/config.rb', line 20

def configure(&block)
  @config = Config::Builder.new(&block).build
end