There is a workaround that would be effective to handle interpolated strings in a better way with the Ripper library.
Ripper splits the interpolated strings making the parse more difficult.
For example, for the line: logger.info "ERP response was #{res_code}: #{res.message}", Ripper returns the following key-value pairs:
Instead of take the strings with :on_tstring_content label, we could take the whole strings appending all the values between :on_tstring_beg and :on_tstring_end
There is a workaround that would be effective to handle interpolated strings in a better way with the Ripper library.
Ripper splits the interpolated strings making the parse more difficult.
For example, for the line:
logger.info "ERP response was #{res_code}: #{res.message}"
, Ripper returns the following key-value pairs:Instead of take the strings with
:on_tstring_content
label, we could take the whole strings appending all the values between:on_tstring_beg
and:on_tstring_end