The upto method from String : upto « String « Ruby






The upto method from String



"a".upto("z") { |i| print i } # => abcdefghijklmnopqrstuvwxyz

 

Related examples in the same category