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