Module: Demux

Defined in:
lib/demux.rb,
lib/demux/engine.rb,
lib/demux/signal.rb,
lib/demux/demuxer.rb,
lib/demux/version.rb,
app/models/demux/app.rb,
lib/demux/transmitter.rb,
app/models/demux/connection.rb,
lib/demux/signal_attributes.rb,
app/models/demux/transmission.rb,
app/jobs/demux/application_job.rb,
app/models/demux/application_record.rb,
app/helpers/demux/application_helper.rb,
app/mailers/demux/application_mailer.rb,
app/controllers/demux/application_controller.rb

Overview

Demux toplevel namespace

Defined Under Namespace

Modules: ApplicationHelper Classes: App, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Configuration, Connection, Demuxer, Engine, NullTransmissionReceipt, Signal, SignalAttributes, Transmission, TransmissionReceipt, Transmitter

Constant Summary collapse

VERSION =
"0.1.0.beta"

Class Method Summary collapse

Class Method Details

.configObject

Alias so that we can refer to configuration as config


21
22
23
# File 'lib/demux.rb', line 21

def config
  configuration
end

.configurationObject


15
16
17
# File 'lib/demux.rb', line 15

def configuration
  @configuration ||= Configuration.new
end

.configure {|current_configuration| ... } ⇒ Object

Configure the library

Examples:

Demux.configure do |config|
  config.default_demuxer = "Demux::Demuxer"
end

Yield Parameters:

Yield Returns:


36
37
38
# File 'lib/demux.rb', line 36

def configure
  yield configuration
end