fantasdic r335 - in trunk: . lib/fantasdic
- From: mblondel svn gnome org
- To: svn-commits-list gnome org
- Subject: fantasdic r335 - in trunk: . lib/fantasdic
- Date: Sat, 23 Aug 2008 19:12:16 +0000 (UTC)
Author: mblondel
Date: Sat Aug 23 19:12:16 2008
New Revision: 335
URL: http://svn.gnome.org/viewvc/fantasdic?rev=335&view=rev
Log:
* lib/fantasdic/utils.rb: Fixed bug in Array#push_head!
Modified:
trunk/ChangeLog
trunk/lib/fantasdic/utils.rb
Modified: trunk/lib/fantasdic/utils.rb
==============================================================================
--- trunk/lib/fantasdic/utils.rb (original)
+++ trunk/lib/fantasdic/utils.rb Sat Aug 23 19:12:16 2008
@@ -102,12 +102,12 @@
class Array
def push_head(ele)
- self << ele
+ self.insert(0, ele)
self
end
def push_tail(ele)
- self[self.length] = ele
+ self << ele
self
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]