added to_a method
This commit is contained in:
parent
9707f5d179
commit
25e97b95de
3 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
require "./lifo/version"
|
||||
require "./lifo/exception"
|
||||
require "./lifo/lifolike"
|
||||
require "./lifo/stack"
|
||||
require "./lifo/queue"
|
||||
require "./lifo/*"
|
||||
|
|
|
@ -16,5 +16,9 @@ module Lifo
|
|||
def empty? : Bool
|
||||
size == 0
|
||||
end
|
||||
|
||||
def to_a : Array(T)
|
||||
@data
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue