class Geode::CircularBuffer(T)
- Geode::CircularBuffer(T)
- Reference
- Object
Included Modules
Defined in:
geode/circular_buffer.crConstructors
Instance Method Summary
- #<<(value : T)
- #capacity
- #clear
-
#each(&)
Must yield this collection's elements to the block.
- #each_last(count, &)
-
#empty?
Returns
true
ifself
does not contain any element. - #full? : Bool
- #push(value : T)
-
#size
Returns the number of elements in the collection.
- #to_s(io)
Instance methods inherited from module Enumerable(T)
to_h_by(&)
to_h_by
Constructor Detail
Instance Method Detail
def each(&)
#
Description copied from module Enumerable(T)
Must yield this collection's elements to the block.
def empty?
#
Description copied from module Enumerable(T)
Returns true
if self
does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?
returns the inverse.
def size
#
Description copied from module Enumerable(T)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4