No commit activity in last 3 years
No release in over 3 years
This ripl plugin indents your multi-line Ruby input using ruby_indentation gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.6.0
 Project Readme

Description¶ ↑

A ripl plugin that indents your entered Ruby code.

Install¶ ↑

Install the gem with

gem install ripl-auto_indent

Usage¶ ↑

Add the following line to your ~/.riplrc

require 'ripl/auto_indent'

Configuration options¶ ↑

The plugin rewrites the last line (if the there are closing elements). If this is too buggy for you or your terminal does not support it, you can deactivate it with Ripl.config[:auto_indent_rewrite] = false. You can change the default two spaces used for indention (per level) with Ripl.config[:auto_indent_space]. The plugin depends on ripl-multi_line, so you can set the multi-line prompt with Ripl.config[:multi_line_prompt]

Known bugs¶ ↑

  • Not 100% correct ;)

J-_-L