Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

#to_r easily confused with Numeric#to_r :( #8

Closed
yaauie opened this issue Oct 28, 2013 · 2 comments
Closed

#to_r easily confused with Numeric#to_r :( #8

yaauie opened this issue Oct 28, 2013 · 2 comments
Assignees
Milestone

Comments

@yaauie
Copy link

yaauie commented Oct 28, 2013

#to_r means 'to rational' everywhere else. Perhaps supply a more descriptive method for clarity?

@krainboltgreene
Copy link
Owner

Good point, ruby tries to look for .to_regexp: http://www.ruby-doc.org/core-2.0.0/Regexp.html#method-c-try_convert

I'll have to push a new major version to fix this, but I was going to anyways.

@ghost ghost assigned krainboltgreene Oct 28, 2013
@yaauie
Copy link
Author

yaauie commented Oct 30, 2013

Oops. Looks like this is a dup of #2.

@yaauie yaauie closed this as completed Oct 30, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants