class StackInt

StackInt. @abstract $DESCRIPTION$.

StackInt. @abstract $DESCRIPTION.

Constants

VERSION

Public Class Methods

new(data = nil) click to toggle source

initialize(data = nil). @abstract Constructor. @param [Data] data An initial data value or object. @return [Stack] A Stack, size 1.

# File lib/stack_ds_int.rb, line 18
def initialize(data = nil)
end

Public Instance Methods

==(stack = nil) click to toggle source

(stack = nil).

@abstract Attribute equality operator. @param [Stack] stack A Stack. @return [TrueClass, FalseClass] attribute_equality True in the case the attributes share the same values, and false otherwise.

# File lib/stack_ds_int.rb, line 61
def ==(stack = nil)
end
===(stack = nil) click to toggle source

(stack = nil).

@abstract Case equality operator. @param [Stack] stack A Stack. @return [TrueClass, FalseClass] identity_equality True in the case self's object_id equals stack's object_id.

# File lib/stack_ds_int.rb, line 71
def ===(stack = nil)
end
copy_constructor() click to toggle source

copy_constructor(). @abstract Copy constructor. Creates a clean copy. self and the copy share no object references apart from Ruby's singleton methods. @return [Stack] A copy.

# File lib/stack_ds_int.rb, line 27
def copy_constructor()
end
empty?() click to toggle source

empty?(). @abstract Boolean method. @return [TrueClass, FalseClass] empty? True in the case the size is 0, and false otherwise.

# File lib/stack_ds_int.rb, line 43
def empty?()
end
inspect() click to toggle source

inspect(). @abstract Returns a diagrammatic String representing the Stack. @return [String] diagram

# File lib/stack_ds_int.rb, line 95
def inspect()
end
pop() click to toggle source

pop(). @abstract Removes the top node. @return [Node] top The top Node's copy.

# File lib/stack_ds_int.rb, line 88
def pop()
end
push(data) click to toggle source

push(data). @abstract Pushes data on the stack. @param [Data] data A data object. The data becomes the stack top. @return [NilClass] nil

# File lib/stack_ds_int.rb, line 80
def push(data)
end
size() click to toggle source

size(). @abstract Getter. Gets self's size. @return [Integer] The size.

# File lib/stack_ds_int.rb, line 35
def size()
end
top() click to toggle source

top(). @abstract Getter. Gets the top node. @return [Node] copy The top Node's copy.

# File lib/stack_ds_int.rb, line 51
def top()
end

Private Instance Methods

initialize_copy() click to toggle source

initialize_copy(). @abstract Initializes self's copy. @return [Stack] copy self's copy reference.

# File lib/stack_ds_int.rb, line 105
def initialize_copy()
end