You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'll be quite hard. The way we currently do this is find the first line of the method, and then extract one complete expression from ruby. To get it without the begin end, it might be sufficient to drop the last end, and delete everything up to the first do or {; but there'll obviously be edge-cases.
Activity
ConradIrwin commentedon Oct 21, 2013
It'll be quite hard. The way we currently do this is find the first line of the method, and then extract one complete expression from ruby. To get it without the begin end, it might be sufficient to drop the last
end, and delete everything up to the firstdoor{; but there'll obviously be edge-cases.bryanp commentedon Oct 21, 2013
Eh, that's what I was afraid of. I may work on a solution for easy cases. If so I'll be sure to send a PR along.
banister commentedon Oct 21, 2013
There's a crazy gem called sourcify which uses its own ragel scanner to do this accurately, you might get some mileague with that ;)
bryanp commentedon Oct 22, 2013
Tried sourcify before method_source. It failed anytime a string was defined with double quotes.
Simple is better, I think.