Update enum.rb

cope 
Change the scope to be a proc wrapped critera.