This ripl plugin allows you to evaluate multiple lines of Ruby code.
Install the gem with
gem install ripl-multi_line
Add the following line to your ~/.riplrc
require 'ripl/multi_line'
You can customize your multi-line prompt with the :multi_line_prompt
option. For example, put this into your ~/.riplrc
:
Ripl.config[:multi_line_prompt] = ' >'
If you are in multi-line situation, you can press ctrl+c
and the last line will be removed.
-
Replaceable check if syntax is valid (allows use of this plugin for other languages than Ruby)
J-_-L