lib/hamster/stack.rb in hamster-0.1.21 vs lib/hamster/stack.rb in hamster-0.1.22
- old
+ new
@@ -53,9 +53,18 @@
def dup
self
end
alias_method :clone, :dup
+ def to_a
+ @list.to_a
+ end
+ alias_method :entries, :to_a
+
+ def to_list
+ @list
+ end
+
def inspect
@list.inspect
end
end