Variable: ruby-insert-encoding-magic-comment
ruby-insert-encoding-magic-comment is a customizable variable defined
in ruby-mode.el.gz.
Value
t
Documentation
Insert a magic Ruby encoding comment upon save if this is non-nil.
The encoding will be auto-detected. The format of the encoding comment
is customizable via ruby-encoding-magic-comment-style.
When set to always-utf8 an utf-8 comment will always be added,
even if it's not required.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defcustom ruby-insert-encoding-magic-comment t
"Insert a magic Ruby encoding comment upon save if this is non-nil.
The encoding will be auto-detected. The format of the encoding comment
is customizable via `ruby-encoding-magic-comment-style'.
When set to `always-utf8' an utf-8 comment will always be added,
even if it's not required."
:type '(choice (const :tag "Don't insert" nil)
(const :tag "Insert utf-8 comment always" always-utf8)
(const :tag "Insert only when required" t)))