Variable: ruby-endless-method-head-re

ruby-endless-method-head-re is a variable defined in ruby-mode.el.gz.

Value

" *\\([a-zA-Z0-9_]+\\.\\)?[a-zA-Z0-9_]+[?!]? *\\(([^()]*)\\)? +="

Documentation

Regexp to match the beginning of an endless method definition.

It should match the part after "def" and until "=".

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defconst ruby-endless-method-head-re
  (format " *\\(%s+\\.\\)?%s+[?!]? *\\(([^()]*)\\)? +="
          ruby-symbol-re ruby-symbol-re)
  "Regexp to match the beginning of an endless method definition.

It should match the part after \"def\" and until \"=\".")