Function: ruby-end-of-defun
ruby-end-of-defun is an interactive and byte-compiled function defined
in ruby-mode.el.gz.
Signature
(ruby-end-of-defun)
Documentation
Move point to the end of the current defun.
The defun begins at or after the point. This function is called
by end-of-defun.
Probably introduced at or before Emacs version 24.3.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defun ruby-end-of-defun ()
"Move point to the end of the current defun.
The defun begins at or after the point. This function is called
by `end-of-defun'."
(interactive "p")
(with-suppressed-warnings ((obsolete ruby-forward-sexp))
(ruby-forward-sexp))
(let (case-fold-search)
(when (looking-back (concat "^\\s *" ruby-block-end-re)
(line-beginning-position))
(forward-line 1))))