Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement to_proc #48

Open
mtejedorwolox opened this issue Oct 2, 2017 · 2 comments
Open

Implement to_proc #48

mtejedorwolox opened this issue Oct 2, 2017 · 2 comments

Comments

@mtejedorwolox
Copy link

Currently and array of strings can't be mapped into ToD with:
string_times.map(&Tod::TimeOfDay.new)

@mtejedorwolox
Copy link
Author

(strings, integers, etc, etc, etc)

@jackc
Copy link
Owner

jackc commented Oct 2, 2017

Is this what you are looking for?

%w[08:00:00 12:00:00].map(&Tod.method(:TimeOfDay))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants