Function: ruby-beginning-of-defun

ruby-beginning-of-defun is an interactive and byte-compiled function defined in ruby-mode.el.gz.

Signature

(ruby-beginning-of-defun &optional ARG)

Documentation

Move backward to the beginning of the current defun.

With ARG, move backward multiple defuns. Negative ARG means move forward.

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-beginning-of-defun (&optional arg)
  "Move backward to the beginning of the current defun.
With ARG, move backward multiple defuns.  Negative ARG means
move forward."
  (interactive "p")
  (let (case-fold-search)
    (when (re-search-backward (concat "^\\s *" ruby-defun-beg-re "\\_>")
                              nil t (or arg 1))
      (beginning-of-line)
      t)))