Interface

A Subscription library's interface.

Constants

Attributes

Method Signatures

Subscription.subscribable()

def Subscription.subscribable()
end

Gets SUBSCRIBABLE. Returns SUBSCRIBABLE's reference.

Subscription.publishable()

def Subscription.publishable()
end

Gets PUBLISHABLE. Returns PUBLISHABLE's reference.

Subscription.s_instance(subscriber = nil)

def Subscription.s_instance(subscriber = nil)
end

Predicate. Verifies an object is a subscribable type's instance. Takes a subscribable instance argument, subscriber. In the case subscriber is a subscribable type's instance, returns true. Returns false otherwise.

Subscription.publisher(published = nil)

def Subscription.publisher(published = nil)
end

Predicate. Verifies a publishable argument is a publishing type instance. Takes a publishable type instance argument, published. Returns true in the case published's class is a publishable class. Returns false otherwise.

Subscription.update(subject = nil)

def Subscription.update(subject = nil)
end

Updates an Observer subject's subscribers. Takes a subscribable argument, subject. Updates all subject's feed subscribers. Returns nil.

Subscription.kind_subscription(publisher = nil) private

def Subscription.kind_subscription(publisher = nil)
end

Discerns the appropriate subscription identifier. Takes a publishable argument, publisher. Returns publisher's kind subscription identifier. Raises an ArgumentError in the case the argument is not a publishable object.

Subscription.new() private, undeclared