Class: RuboCop::MagicComment::EmacsComment
- Inherits:
-
EditorComment
- Object
- RuboCop::MagicComment
- EditorComment
- RuboCop::MagicComment::EmacsComment
- Defined in:
- lib/rubocop/magic_comment.rb
Overview
Wrapper for Emacs style magic comments.
Constant Summary collapse
- FORMAT =
/-\*-(.+)-\*-/.freeze
- SEPARATOR =
';'
- OPERATOR =
':'
Constants inherited from RuboCop::MagicComment
Instance Method Summary collapse
Methods inherited from RuboCop::MagicComment
#any?, #encoding_specified?, #frozen_string_literal, #frozen_string_literal?, #frozen_string_literal_specified?, #initialize, parse, #shareable_constant_value, #shareable_constant_value_specified?, #valid_literal_value?, #valid_shareable_constant_value?
Constructor Details
This class inherits a constructor from RuboCop::MagicComment
Instance Method Details
#encoding ⇒ Object
158 159 160 |
# File 'lib/rubocop/magic_comment.rb', line 158 def encoding match('(?:en)?coding') end |