I ran into a bit of a rut today and it's possible: 1. I'm too anal for
my own good or 2. I don't know Ruby well enough. Still.

I need the Regexp.escape method to clean some data inside one of my DM
resources. DM has its own Regexp class which appears to override the
top level one. Being new to Ruby I went searching for a way to access
the top level Regexp and came up with: Module::Regexp.escape. It
works, but it issues this warning:

"warning: toplevel constant Regexp referenced by Module::Regexp"

Is there a better way of doing this that does not issue a warning?
(And is this question appropriate for this forum or should I have
posted this to a more general Ruby forum?)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to