lib/core/facets/stackable.rb in facets-2.0.2 vs lib/core/facets/stackable.rb in facets-2.0.3
- old
+ new
@@ -25,22 +25,23 @@
def pull
slice(0)
end
- alias :shift :pull
+ alias_method :shift, :pull
#
def poke(x)
insert(0,x)
end
- alias :unshift :poke
+ alias_method :unshift, :poke
#
def peek
splice(-1)
end
end
+