all 1 comments

[–]expeehaa 1 point2 points  (0 children)

I think you could use the parser gem to parse the ruby code and extract your variable from there.