class RuboCop::MagicComment::EmacsComment

Wrapper for Emacs style magic comments.

@example Emacs style comment

comment = RuboCop::MagicComment.parse(
  '# -*- encoding: ASCII-8BIT -*-'
)

comment.encoding # => 'ascii-8bit'

@see www.gnu.org/software/emacs/manual/html_node/emacs/Specify-Coding.html @see github.com/ruby/ruby/blob/3f306dc/parse.y#L6873-L6892 Emacs handling in parse.y