# File lib/util.rb, line 26 def argfind each { |e| x = yield(e); return x if x } nil end
# File lib/util.rb, line 6 def count_of(&b); select(&b).size end
# File lib/util.rb, line 31 def group_by inject({}) do |groups, element| (groups[yield(element)] ||= []) << element groups end end
Generated with the Darkfish Rdoc Generator 2.