GNU-devel ELPA - ruby-end

ruby-end

Description
Automatic insertion of end blocks for Ruby
Latest
ruby-end-0.4.3.0.20230205.12506.tar, 2023-Feb-05, 20.0 KiB
Maintainer
Dmitry Gutov <dgutov@yandex.ru>
Website
http://github.com/rejeep/ruby-end
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package, run in Emacs:

M-x package-install RET ruby-end RET

Full description

Ruby end Build Status

Ruby end is a minor mode for Emacs that can be used with ruby-mode to automatically close blocks by inserting end when typing a "block keyword", followed by a space.

Installation

I recommend installing via ELPA, but manual installation is simple as well:

(add-to-list 'load-path "/path/to/ruby-end")
(require 'ruby-end)

Usage

When ruby-mode is started, ruby-end-mode will automatically start.

In a Ruby file, try writing a block keyword, such as class or def and then SPC.

For more information, see comments in ruby-end.el.

Contribution

Contribution is much welcome! Ruby end is tested using Ecukes. When adding new features, please write tests for them!

Install cask if you haven't already, then:

$ cd /path/to/ruby-end
$ cask

Run all tests with:

$ make

Old versions

ruby-end-0.4.3.0.20230126.162729.tar.lz2023-Jan-262.76 KiB
ruby-end-0.4.2.0.20230126.4029.tar.lz2023-Jan-262.72 KiB