/ripl-multi_line

This ripl plugin allows you to evaluate multiple lines of Ruby code.

Primary LanguageRubyMIT LicenseMIT

Description

This ripl plugin allows you to evaluate multiple lines of Ruby code.

Install

Install the gem with

gem install ripl-multi_line

Usage

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.

Todo

  • Replaceable check if syntax is valid (allows use of this plugin for other languages than Ruby)

J-_-L