added to_a method

This commit is contained in:
Dominic Grimm 2021-12-11 10:54:31 +01:00
parent 9707f5d179
commit 25e97b95de
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
name: lifo
description: A library for working with LIFO like data structures (stacks, queues).
version: 0.1.2
version: 0.1.3
authors:
- Dominic Grimm <dominic.grimm@gmail.com>

View file

@ -1,5 +1 @@
require "./lifo/version"
require "./lifo/exception"
require "./lifo/lifolike"
require "./lifo/stack"
require "./lifo/queue"
require "./lifo/*"

View file

@ -16,5 +16,9 @@ module Lifo
def empty? : Bool
size == 0
end
def to_a : Array(T)
@data
end
end
end