Categories: None [Edit]

array-stack

https://rubygems.org/gems/array-stack
https://github.com/sci3nti5t/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: -

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,610,762,425bundler
81,378,967,517rake
141,266,942,627minitest

Owners

#GravatarHandle
1iconscientist