Mega Code Archive

 
Categories / Ruby / Range
 

Reverse_each method from string

("a".."e").to_a.reverse_each { |x| puts x } # e # d # c # b # a