Module: PubSub
- Defined in:
- lib/pub_sub.rb,
lib/pub_sub/version.rb,
lib/pub_sub/register.rb,
lib/pub_sub/subscriber.rb,
lib/pub_sub/active_record_extensions.rb
Defined Under Namespace
Modules: ActiveRecord
Classes: ActiveRecordExtensions, Register, Subscriber
Constant Summary
collapse
- VERSION =
"0.0.4"
Class Method Summary
collapse
Class Method Details
.disable ⇒ Object
14
15
16
|
# File 'lib/pub_sub.rb', line 14
def disable
Register.disable
end
|
.disabled? ⇒ Boolean
22
23
24
|
# File 'lib/pub_sub.rb', line 22
def disabled?
Register.disabled?
end
|
.enable ⇒ Object
10
11
12
|
# File 'lib/pub_sub.rb', line 10
def enable
Register.enable
end
|
.enabled? ⇒ Boolean
18
19
20
|
# File 'lib/pub_sub.rb', line 18
def enabled?
Register.enabled?
end
|
.publish(*args, &block) ⇒ Object
Standardize on Pub/Sub naming
29
30
31
|
# File 'lib/pub_sub.rb', line 29
def publish(*args, &block)
Register.publish(*args, &block)
end
|
.subscribe(*args, &block) ⇒ Object
33
34
35
|
# File 'lib/pub_sub.rb', line 33
def subscribe(*args, &block)
Register.subscribe(*args, &block)
end
|