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
|
name: lifo
|
||||||
description: A library for working with LIFO like data structures (stacks, queues).
|
description: A library for working with LIFO like data structures (stacks, queues).
|
||||||
version: 0.1.2
|
version: 0.1.3
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Dominic Grimm <dominic.grimm@gmail.com>
|
- Dominic Grimm <dominic.grimm@gmail.com>
|
||||||
|
|
|
@ -1,5 +1 @@
|
||||||
require "./lifo/version"
|
require "./lifo/*"
|
||||||
require "./lifo/exception"
|
|
||||||
require "./lifo/lifolike"
|
|
||||||
require "./lifo/stack"
|
|
||||||
require "./lifo/queue"
|
|
||||||
|
|
|
@ -16,5 +16,9 @@ module Lifo
|
||||||
def empty? : Bool
|
def empty? : Bool
|
||||||
size == 0
|
size == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def to_a : Array(T)
|
||||||
|
@data
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue