class RuboCop::MagicComment::EmacsComment
@see git.io/vMCXh Emacs handling in Ruby’s parse.y
@see www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html<br><br>comment.encoding # => ‘ascii-8bit’
)
‘# -*- encoding: ASCII-8BIT -*-’
comment = RuboCop::MagicComment.parse(
@example Emacs style comment
Wrapper for Emacs style magic comments.
def encoding
def encoding match('(?:en)?coding') end
def extract_frozen_string_literal
def extract_frozen_string_literal match('frozen[_-]string[_-]literal') end