Say you have a Date class in java with this constructor:
public Date(int year, int month, int day)
and in this class you have a method that returns the number of days that this Date must be
adjusted to make it equal to the given Date:
public int daysTo(Date other)
If you were to recreate this class in Ruby how would you handle this daysTo method?
1 Answer