Module: Hey

Extended by:
Behavior
Defined in:
lib/hey.rb,
lib/hey/version.rb

Defined Under Namespace

Modules: Behavior, Pubsub Classes: Configuration, Context, EventName, SanitizedHash, ThreadCargo

Constant Summary collapse

SANITIZE_KEY =
:sanitize
VERSION =
"0.2.1"

Class Method Summary collapse

Methods included from Behavior

context, publish!, subscribe!

Class Method Details

.configurationObject



12
13
14
# File 'lib/hey.rb', line 12

def self.configuration
  @configuration ||= Hey::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
# File 'lib/hey.rb', line 8

def self.configure
  yield(configuration)
end

.global_namespaceObject



20
21
22
# File 'lib/hey.rb', line 20

def self.global_namespace
  configuration.global_namespace
end

.pubsub_adapterObject



16
17
18
# File 'lib/hey.rb', line 16

def self.pubsub_adapter
  configuration.pubsub_adapter
end