Libraries
Search…
Interface
Class: ObserverInt.

Constants

Attributes

Method Signatures

ObserverInt.observable()

1
def self.observable()
2
end
Copied!
Gets OBSERVABLE. Returns OBSERVABLE's Set reference.

ObserverInt.type(identifier = nil)

1
def self.type(identifier = nil)
2
end
Copied!
Predicate. Verifies an argument, identifier, is an Observable identifier. Returns true in the case the identifier is an Observable type. false otherwise.

ObserverInt.changed(instance = nil)

1
def self.changed(instance = nil)
2
end
Copied!
Predicate. Verifies an argument subject's state. Returns true in the case the argument is an Observable type, it is an Observer's subject, and its state changed. false otherwise.

ObserverInt.notify(instance = nil)

1
def self.notify(instance = nil)
2
end
Copied!
Notifies the appropriate Observer kind an instance's state changed. Takes an Observable instance, instance, and updates its subscribers. Returns nil.
Last modified 1yr ago