Variable: ruby-align-to-stmt-keywords
ruby-align-to-stmt-keywords is a customizable variable defined in
ruby-mode.el.gz.
Value
(def)
Documentation
Keywords after which we align the expression body to statement.
When nil, an expression that begins with one these keywords is indented to the column of the keyword. Example:
tee = if foo
bar
else
qux
end
If this value is t or contains a symbol with the name of given keyword, the expression is indented to align to the beginning of the statement:
tee = if foo
bar
else
qux
end
Only has effect when ruby-use-smie is t.
This variable was added, or its default value changed, in Emacs 24.4.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defcustom ruby-align-to-stmt-keywords '(def)
"Keywords after which we align the expression body to statement.
When nil, an expression that begins with one these keywords is
indented to the column of the keyword. Example:
tee = if foo
bar
else
qux
end
If this value is t or contains a symbol with the name of given
keyword, the expression is indented to align to the beginning of
the statement:
tee = if foo
bar
else
qux
end
Only has effect when `ruby-use-smie' is t."
:type `(choice
(const :tag "None" nil)
(const :tag "All" t)
(repeat :tag "User defined"
(choice ,@(mapcar
(lambda (kw) (list 'const kw))
ruby-alignable-keywords))))
:safe 'listp
:version "24.4")