Ruby | Date downto() function
Date#downto() is a Date class method which is equivalent to step(min, -1){|date| â¦} and returns the enumerator. Syntax: Date.downto() Parameter: Date values Return: equivalent to step(min, -1){|date| â¦} and returns the enumerator. Example #1 : Ruby 1=1 # Ruby code for Date.downto() method # loading