Colin Bartlett wrote:
> puts "Date.day_fraction_to_time using wrapper"
> class Date
>     class << self
>       def wrap_day_fraction_to_time( day_frac )
>         day_fraction_to_time( day_frac )
>       end
>    end
> end
> hours, minutes, seconds, frac =
>     Date.wrap_day_fraction_to_time( stop - start )
> p hours, minutes, seconds, frac

Thanks for the answer. Could you examplain me the wrapper in detail, 
please? I'm assuming you're extending the Date class with an anonymous 
class but it's really not clear to me the class << self declaration.
-- 
Posted via http://www.ruby-forum.com/.