Libraries
Search…
Interface
Class: NodeInt.

Constants

Attributes

back, undeclared

A back Node reference, or nil.

data, undeclared

A DataType type instance.

front, undeclared

A front Node reference, or nil.

Method Signatures

initialize(b_n = nil, dti = nil, f_n = nil)

1
def initialize(b_n = nil, dti = nil, f_n = nil)
2
end
Copied!
Initializes a Node instance. Takes two Node arguments, b_n and f_n. b_n is back's assignment, and f_n is front's assignment. Takes one DataType type instance argument, dti. dti becomes the data reference. Returns a Node instance.

shallow_clone()

1
def shallow_clone()
2
end
Copied!
Shallowly clones. The clone and self are not identical, and share the same attribute references. Returns the Node clone.

clone_df()

1
def clone_df()
2
end
Copied!
Deeply clones. No Node references are identical. data references are identical. Returns the clone Node. Mutating the attributes' references raises a FrozenError.

b()

1
def b()
2
end
Copied!
Gets back. Returns the Node reference, frozen.

data()

1
def data()
2
end
Copied!
Gets data. Returns the DataType type reference, frozen.

f()

1
def f()
2
end
Copied!
Gets front. Returns the Node reference, frozen.

data=(dti = nil)

1
def data=(dti = nil)
2
end
Copied!
Sets data. Takes a DataType type instance argument, dti. dti becomes the data setting. Returns the argument. In the case the argument is any type other than a DataType type instance, raises a DataError.

==(rhs = nil)

1
def ==(rhs = nil)
2
end
Copied!
Attribute equality operator. Takes a comparison instance, rhs. Returns true in the case self's attribute references and rhs' attribute references are identical instances. Returns false otherwise.

===(rhs = nil)

1
def ===(rhs = nil)
2
end
Copied!
Identity comparison operator. Takes a comparison instance, rhs. Returns true in the case self and the argument are identical instances. Returns false otherwise.

inspect()

1
def inspect()
2
end
Copied!
Diagrammatically represents self. Returns the String formation.

back_ref() protected

1
def back_ref()
2
end
Copied!
Gets back's reference. Returns the Node or NilClass instance reference.

front_ref() protected

1
def front_ref()
2
end
Copied!
Gets front's reference. Returns the Node or NilClass instance reference.

back() private

1
def back()
2
end
Copied!
Gets back's reference. Returns the Node or NilClass instance reference.

front() private

1
def front()
2
end
Copied!
Gets front's reference. Returns the Node or NilClass instance reference.

back=(n = nil) private

1
def back=(n = nil)
2
end
Copied!
Sets back. Takes a Node argument, n. n becomes back's setting. Returns the argument Node. In the case the argument is any type other than Node, raises a NodeError.

front=(n = nil) private

1
def front=(n = nil)
2
end
Copied!
Sets front. Takes a Node argument, n. n becomes front's setting. Returns the argument Node. In the case the argument is any type other than Node, raises a NodeError.

Helpers

back_attached()
1
def back_attached()
2
end
Copied!
A back attribute predicate. Returns true in the case back refers a Node instance. false otherwise.
front_attached()
1
def front_attached()
2
end
Copied!
A front attribute predicate. Returns true in the case front refers a Node instance. false otherwise.
no_attachments()
1
def no_attachments()
2
end
Copied!
A back and front attribute predicate. Returns true in the case back and front refer nil. false otherwise.
empty()
1
def empty()
2
end
Copied!
A data attribute predicate. Returns true in the case data refers nil. false otherwise.
base()
1
def base()
2
end
Copied!
A back and front attribute predicate. Returns true in the case back refers nil and front refers a Node instance.
pioneer()
1
def pioneer()
2
end
Copied!
A back and front attribute predicate. Returns true in the case back refers a Node instance and front refers nil. false otherwise.
Last modified 1yr ago