Implement to_proc
mtejedorwolox opened this issue · comments
mtejedorwolox commented
Currently and array of strings can't be mapped into ToD with:
string_times.map(&Tod::TimeOfDay.new)
mtejedorwolox commented
(strings, integers, etc, etc, etc)
Jack Christensen commented
Is this what you are looking for?
%w[08:00:00 12:00:00].map(&Tod.method(:TimeOfDay))