On Thursday, July 2, 2015 at 5:21:51 AM UTC+1, [email protected] wrote: > Something like x.instance_variables.each.... { |i} .... } > > > Ought to be a one liner. I can't figure out how to apply strip() to each > variable, since instance_variable_get returns the value. I really want > something I can apply .strip! to....
What make you think you can't do that to the result from instance_variable_get ? Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3705f8b0-05c6-407e-8b46-681bb858482c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

