[Xfce4-commits] <eatmonkey:aria2-xml-rpc> Add Array.count to compat18
Mike Massonnet
noreply at xfce.org
Sat Feb 6 19:16:04 CET 2010
Updating branch refs/heads/aria2-xml-rpc
to 61daac63244b62f14523c59a5e57b333bbd665b9 (commit)
from b41ea4ecd7835ab0949bcf41355badd64ebc5f0e (commit)
commit 61daac63244b62f14523c59a5e57b333bbd665b9
Author: Mike Massonnet <mmassonnet at gmail.com>
Date: Sat Feb 6 19:17:14 2010 +0100
Add Array.count to compat18
src/compat18.rb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/compat18.rb b/src/compat18.rb
index 6a2b1c7..c35d1e1 100644
--- a/src/compat18.rb
+++ b/src/compat18.rb
@@ -1,4 +1,7 @@
class Array
+ def count()
+ nitems()
+ end
def find_index(idx)
index(idx)
end
More information about the Xfce4-commits
mailing list