public
Description: The web app builder for Rails
Homepage: http://hobocentral.net
Clone URL: git://github.com/tablatom/hobo.git
Hobo support - renamed Enumerable#search to Enumerable#map_and_find. Was 
clashing with the search automatic scope
tablatom (author)
Fri Jul 25 08:33:59 -0700 2008
commit  5aa2db6d2ad056a33dd069dda4ec72ee4ec60379
tree    bbfedc1412b00c7ebd4391020d36584be0b92a65
parent  815cc71f8971bf2360a04d2fb05872f351e47891
...
1
2
3
 
4
5
6
...
1
2
 
3
4
5
6
0
@@ -1,6 +1,6 @@
0
 module Enumerable
0
 
0
- def search(not_found=nil)
0
+ def map_and_find(not_found=nil)
0
     each do |x|
0
       val = yield(x)
0
       return val if val

Comments

    No one has commented yet.