> 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.

The best way to access top level constants is by prefixing with "::", so:

  escaped_value = ::Regexp.escape(value)

Bernerd Schaefer

--~--~---------~--~----~------------~-------~--~----~
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