Variable: ruby-encoding-map
ruby-encoding-map is a customizable variable defined in
ruby-mode.el.gz.
Value
((us-ascii)
(utf-8)
(shift-jis . cp932)
(shift_jis . cp932)
(japanese-cp932 . cp932))
Documentation
Alist to map encoding name from Emacs to Ruby.
Associating an encoding name with nil means it needs not be explicitly declared in magic comment.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/ruby-mode.el.gz
(defcustom ruby-encoding-map
'((us-ascii . nil) ;; Do not put coding: us-ascii
(utf-8 . nil) ;; Default since Ruby 2.0
(shift-jis . cp932) ;; Emacs charset name of Shift_JIS
(shift_jis . cp932) ;; MIME charset name of Shift_JIS
(japanese-cp932 . cp932)) ;; Emacs charset name of CP932
"Alist to map encoding name from Emacs to Ruby.
Associating an encoding name with nil means it needs not be
explicitly declared in magic comment."
:type '(repeat (cons (symbol :tag "From") (symbol :tag "To"))))