Variable: ruby-method-params-indent
ruby-method-params-indent is a customizable variable defined in
ruby-mode.el.gz.
Value
t
Documentation
Indentation of multiline method parameters.
When t, the parameters list is indented to the method name:
def foo(
baz,
bar
)
hello
end
When a number, indent the parameters list this many columns against the beginning of the method (the "def" keyword).
The value nil means the same as 0:
def foo(
baz,
bar
)
hello
end
Only has effect when ruby-use-smie is t.
This variable was added, or its default value changed, in Emacs 29.1.
Probably introduced at or before Emacs version 29.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defcustom ruby-method-params-indent t
"Indentation of multiline method parameters.
When t, the parameters list is indented to the method name:
def foo(
baz,
bar
)
hello
end
When a number, indent the parameters list this many columns
against the beginning of the method (the \"def\" keyword).
The value nil means the same as 0:
def foo(
baz,
bar
)
hello
end
Only has effect when `ruby-use-smie' is t."
:type '(choice (const :tag "Indent to the method name" t)
(number :tag "Indent specified number of columns against def")
(const :tag "Indent to def" nil))
:safe (lambda (val) (or (memq val '(t nil)) (numberp val)))
:version "29.1")