Libraries
Search…
Interface
A Subscription library's interface.

Constants

Attributes

Method Signatures

Subscription.subscribable()

1
def Subscription.subscribable()
2
end
Copied!
Gets SUBSCRIBABLE. Returns SUBSCRIBABLE's reference.

Subscription.publishable()

1
def Subscription.publishable()
2
end
Copied!
Gets PUBLISHABLE. Returns PUBLISHABLE's reference.

Subscription.s_instance(subscriber = nil)

1
def Subscription.s_instance(subscriber = nil)
2
end
Copied!
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)

1
def Subscription.publisher(published = nil)
2
end
Copied!
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)

1
def Subscription.update(subject = nil)
2
end
Copied!
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

1
def Subscription.kind_subscription(publisher = nil)
2
end
Copied!
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

Last modified 1yr ago