Wednesday, September 5, 2012

[Rails] Regexp pre_match

I looked in ruby documentation

http://www.ruby-doc.org/core-1.9.3/Regexp.html

I cannot find a method called pre_match but its used in Rails...

@template.instance_variable_get("@#{Regexp.last_match.pre_match}")

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate