Mega Code Archive

 
Categories / Ruby / String
 

Next method from Integer

# (The Date, Generator, Integer, and String classes all have next methods.) # You can even use a character code via chr with next: 120.chr # => "x" 120.chr.next # => "y"