class NodeObserverInt
NodeObserverInt
. @abstract @class_description
A NodeObserver library interface.
@attr observing [Set]
Subjects.
@attr changed [Set]
Changed subjects.
NodeObserverInt
. @abstract @class_description
A NodeObserver library interface.
@attr observing [Set]
Subjects.
@attr changed [Set]
Changed subjects.
Constants
- VERSION
Public Class Methods
self.instance(). @description
Gets instance. Lazily initializes instance.
@return [NodeObserver]
The instance.
# File lib/node_observer_int.rb, line 21 def self.instance() end
Private Class Methods
self.instance=(singleton = nil). @description
Sets the singleton instance.
@param singleton [NodeObserver]
The instance.
@return [NodeObserver]
The argument.
# File lib/node_observer_int.rb, line 172 def self.instance=(singleton = nil) end
initialize(subjects = Set[], changed_subjects = Set[]). @description
Initializes the singleton instance's instance variables.
@param subjects [Set]
An empty Set.
@param changed_subjects [Set]
An empty Set.
# File lib/node_observer_int.rb, line 162 def initialize(subjects = Set[], changed_subjects = Set[]) end
Public Instance Methods
add(n = nil). @description
Adds observing a subject.
@param n [Node]
The addition.
@return [NilClass]
nil.
# File lib/node_observer_int.rb, line 61 def add(n = nil) end
changed_node
(subject = nil). @description
Predicate. Verifies a subject was changed.
@param subject [Node]
Any instance.
@return [TrueClass, FalseClass]
True in the case the argument is a changed element. False otherwise.
# File lib/node_observer_int.rb, line 41 def changed_node(subject = nil) end
remove(n = nil). @description
Removes a subject.
@param n [Node]
The removal.
@return [NilClass]
nil.
# File lib/node_observer_int.rb, line 71 def remove(n = nil) end
subject(n = nil). @description
Predicate. Verifies a Node is a subject.
@param n [Node]
Any instance.
@return [TrueClass, FalseClass]
True in the case the argument is an 'observing' element. False otherwise.
# File lib/node_observer_int.rb, line 31 def subject(n = nil) end
subject_changed
(subject = nil). @description
Adds an existing subject the changed Set.
@param subject [Node]
A subject.
@return [NilClass]
nil.
# File lib/node_observer_int.rb, line 51 def subject_changed(subject = nil) end
Protected Instance Methods
add_changed
(n = nil). @description
Adds changed a changed subject.
@param n [Node]
A changed subject.
@return [NilClass]
nil.
# File lib/node_observer_int.rb, line 99 def add_changed(n = nil) end
changed(). @description
Gets changed.
@return [Set]
changed's reference.
# File lib/node_observer_int.rb, line 89 def changed() end
notify(n = nil). @description
Updates a subject's subscribers.
@param n [Node]
A changed subject.
@return [NilClass]
nil.
# File lib/node_observer_int.rb, line 120 def notify(n = nil) end
observing(). @description
Gets 'observing'.
@return [Set]
observing's reference.
# File lib/node_observer_int.rb, line 81 def observing() end
remove_changed
(n = nil). @description
Removes a changed subject. Calls after a Subscription update call.
@param n [Node]
A changed element. The element's subscribers were updated, so it is an unchanged subject.
@return [NilClass]
nil.
# File lib/node_observer_int.rb, line 110 def remove_changed(n = nil) end
Private Instance Methods
changed=(s = nil). @description
Sets 'changed'.
@param s [Set]
An empty set.
@return [Set]
The argument.
# File lib/node_observer_int.rb, line 142 def changed=(s = nil) end
observing=(s = nil). @description
Sets observing.
@param s [Set]
An empty set.
@return [Set]
The argument.
# File lib/node_observer_int.rb, line 132 def observing=(s = nil) end
receive_change
(n = nil). @description
Receives a Node's state change.
@param n [Node]
An existing subject.
@return [NilClass]
nil.
# File lib/node_observer_int.rb, line 152 def receive_change(n = nil) end