Closed vikdotdev closed 4 years ago
This can be closed now.
Thanks for the workaround. This only works inside begin
...end
or def
...end
though, right?
Never mind. Should work in any file-based buffer with ruby-send-region
. Just not inside the REPL itself.
Issue occurs with
ruby-send-region
command when I'm trying to evaluate code with very common format.For example:
returns the following result:
Expected result:
With little experimentation I noticed that when line ends with a dot, it evaluates properly:
Solution
As I was formulating my issue I found a solution in pry issues and decided to still post it here, as it might be useful to someone else.
Pry.commands.delete /\.(.*)/
can be put into~/.pryrc
and it should work.