Categories: None [Edit]
array-stack
An array-based stack data structure class. The stack
operations work for non-atomic objects. The class consists seven public methods,
one protected method, and three private methods. Initialization includes two
instance variables: `@array` and `@size`. The public methods are the `size()`
method, the `initialize(value = nil)` method, the `empty?()` method, the `push()`
method, the `pop(amount = 1)` method, the `top()` method, and the `dup_array()`
method. The `array=(array_stack)` setter method was protected. The `array()`
getter, `each()` iterator, and `size=(value)` setter methods are private.
The `initialize(value = nil`, `push()`, and `array=(array_stack)` methods
duplicate their arguments. The `top()` method returns a duplicate top object.
The class was basically tested.
Total
Ranking: - of 195,589
Downloads: -
Daily
Ranking: - of 195,564
Downloads: -
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | scientist |