emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ruby-mode] dot-alignment support for multi-line method chaining


From: Bozhidar Batsov
Subject: [ruby-mode] dot-alignment support for multi-line method chaining
Date: Tue, 21 Jan 2014 14:25:54 +0200

Currently when doing method chaining on multiple lines we get the following indentation:

something.ala
  .one
  .two
  .three

An alternative style that seems to be popular is:

something.ala
               .one
               .two
               .three

Here are some references (not just for Ruby):

* http://en.wikipedia.org/wiki/Fluent_interface
https://github.com/bbatsov/ruby-style-guide/pull/176#issuecomment-18664622

I guess it will be good if ruby-mode supported the alternative style via some customisable option.

-- 
Cheers,
Bozhidar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]