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)

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

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()

def shallow_clone()
end

Shallowly clones. The clone and self are not identical, and share the same attribute references. Returns the Node clone.

clone_df()

def clone_df()
end

Deeply clones. No Node references are identical. data references are identical. Returns the clone Node. Mutating the attributes' references raises a FrozenError.

b()

def b()
end

Gets back. Returns the Node reference, frozen.

data()

def data()
end

Gets data. Returns the DataType type reference, frozen.

f()

def f()
end

Gets front. Returns the Node reference, frozen.

data=(dti = nil)

def data=(dti = nil)
end

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)

def ==(rhs = nil)
end

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)

def ===(rhs = nil)
end

Identity comparison operator. Takes a comparison instance, rhs. Returns true in the case self and the argument are identical instances. Returns false otherwise.

inspect()

def inspect()
end

Diagrammatically represents self. Returns the String formation.

back_ref() protected

def back_ref()
end

Gets back's reference. Returns the Node or NilClass instance reference.

front_ref() protected

def front_ref()
end

Gets front's reference. Returns the Node or NilClass instance reference.

back() private

def back()
end

Gets back's reference. Returns the Node or NilClass instance reference.

front() private

def front()
end

Gets front's reference. Returns the Node or NilClass instance reference.

back=(n = nil) private

def back=(n = nil)
end

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

def front=(n = nil)
end

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()

def back_attached()
end

A back attribute predicate. Returns true in the case back refers a Node instance. false otherwise.

front_attached()

def front_attached()
end

A front attribute predicate. Returns true in the case front refers a Node instance. false otherwise.

no_attachments()

def no_attachments()
end

A back and front attribute predicate. Returns true in the case back and front refer nil. false otherwise.

empty()

def empty()
end

A data attribute predicate. Returns true in the case data refers nil. false otherwise.

base()

def base()
end

A back and front attribute predicate. Returns true in the case back refers nil and front refers a Node instance.

pioneer()

def pioneer()
end

A back and front attribute predicate. Returns true in the case back refers a Node instance and front refers nil. false otherwise.