Ruby challenge

3 views
Skip to first unread message

Brian Cardarella

unread,
May 27, 2011, 12:46:01 PM5/27/11
to Boston Ruby Group
I'm tapping the hive mind on this one, I'm stumped.

https://gist.github.com/995648

- Brian

Chris Rhoden

unread,
May 27, 2011, 12:54:09 PM5/27/11
to boston-r...@googlegroups.com

#source ?

> --
> You received this message because you are subscribed to the Boston Ruby Group mailing list
> To post to this group, send email to boston-r...@googlegroups.com
> To unsubscribe from this group, send email to boston-rubygro...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/boston-rubygroup

Daniel Higginbotham

unread,
May 27, 2011, 12:55:00 PM5/27/11
to boston-r...@googlegroups.com
How about /\+/.source ?

Maurício Linhares

unread,
May 27, 2011, 12:54:57 PM5/27/11
to boston-r...@googlegroups.com
Regexp.new(/\+/.source) => /\+/

-
Maurício Linhares
http://techbot.me/ - http://twitter.com/#!/mauriciojr

Chris Rhoden

unread,
May 27, 2011, 12:55:51 PM5/27/11
to boston-r...@googlegroups.com

Sorry, I now see that was already recommended. Would you consider a gsub on source to unescape?

Brian Cardarella

unread,
May 27, 2011, 1:01:00 PM5/27/11
to boston-r...@googlegroups.com
Yup, #source is the answer. I seem to have something that is messing with my Regexp class. In a clean IRB session it works as you guys have suggested. I'll have to track down the bad dependency. Thanks!
Reply all
Reply to author
Forward
0 new messages