class NodeSubscriptionInt

NodeSubscriptionInt. @abstract @class_description

A NodeSubscription library interface.

@attr instance [NodeSubscription]

A singleton instance.

@attr feeds [Set]

All subscription feeds. Its elements are hashes. The keys are Node
references, and their values are Sets containing corresponding subscribers.

NodeSubscriptionInt. @abstract @class_description

A NodeSubscription library interface.

@attr instance [NodeSubscription]

A singleton instance.

@attr feeds [Set]

All subscription feeds. Its elements are hashes. The keys are Node
references, and their values are Sets containing corresponding subscribers.

Constants

VERSION

Public Class Methods

instance() click to toggle source

self.instance(). @description

Lazily initializes a singleton instance, or gets the singleton instance.

@return [NodeSubscription]

The singleton.
# File lib/node_subscription_int.rb, line 23
def self.instance()
end

Private Class Methods

instance=(s = nil) click to toggle source

self.instance=(s = nil). @description

Sets the singleton instance.

@param s [NodeSubscription]

The singleton NodeSubscription instance.

@return [NodeSubscription]

The argument.
# File lib/node_subscription_int.rb, line 125
def self.instance=(s = nil)
end
new() click to toggle source

initialize(). @description

Initializes the singleton instance.
# File lib/node_subscription_int.rb, line 115
def initialize()
end

Public Instance Methods

add_publisher(p = nil) click to toggle source

add_publisher(p = nil). @description

Adds a Node publisher.

@param p [Node]

Any instance.

@return [NilClass]

nil.
# File lib/node_subscription_int.rb, line 53
def add_publisher(p = nil)
end
add_subscriber(p = nil, s = nil) click to toggle source

add_subscriber(p = nil, s = nil). @description

Adds a subscriber a publisher's Set.

@param p [Node]

A publisher.

@param s [.]

Any subscribable instance.

@return [NilClass]

nil.
# File lib/node_subscription_int.rb, line 65
def add_subscriber(p = nil, s = nil)
end
publisher(p = nil) click to toggle source

publisher(p = nil). @description

Predicate. Verifies a Node is a feed publisher.

@param p [Node]

Any instance.

@return [TrueClass, FalseClass]

True in the case p is a feeds key. False otherwise.
# File lib/node_subscription_int.rb, line 33
def publisher(p = nil)
end
update_subscribers(publisher = nil) click to toggle source

update_subscribers(publisher = nil). @description

Updates a publisher's subscribers.

@param publisher [Node]

A changed subject.

@return [NilClass]

nil.
# File lib/node_subscription_int.rb, line 43
def update_subscribers(publisher = nil)
end

Protected Instance Methods

feed(p = nil) click to toggle source

feed(p = nil). @description

Gets a publisher's feed.

@param p [Node]

A publisher.

@return [Set]

p's feed.

@raise [ArgumentError]

In the case p is not a feeds element hash key.
# File lib/node_subscription_int.rb, line 87
def feed(p = nil)
end
feeds() click to toggle source

feeds(). @description

Gets feeds.

@return [Set]

feeds' reference.
# File lib/node_subscription_int.rb, line 75
def feeds()
end

Private Instance Methods

feeds=(s = Set[]) click to toggle source

feeds=(s = Set[]). @description

Sets feeds.

@param s [Set]

An empty Set.

@return [Set]

The parameter.
# File lib/node_subscription_int.rb, line 99
def feeds=(s = Set[])
end
kind_factory(s = nil) click to toggle source

kind_factory(s = nil). @description

Gets a subscriber's factory.

@param s [.]

A feed subscriber.

@return [.]

A factory identifier.
# File lib/node_subscription_int.rb, line 109
def kind_factory(s = nil)
end