Add method #to_proc to Collection::Class