Sha256: 744f910852e69c19901689dda2c14d2d009cdd6d89465ca5513f13082724d7b4
Contents?: true
Size: 560 Bytes
Versions: 8
Compression:
Stored size: 560 Bytes
Contents
module Vedeu # First-in first-out storage. # # in -> [3] -> [2] -> [1] -> out # # @api private class FifoStore include Vedeu::Store # @param storage [Array] # @return [Vedeu::FifoStore] def initialize(storage = []) @storage = storage end # @return [Object] def load storage.pop end # @param data [Object] # @return [Array<Object>] def save(data) storage.unshift(data) end private # @return [Array] def in_memory [] end end # FifoStore end # Vedeu
Version data entries
8 entries across 8 versions & 1 rubygems