Class: Mutant::Subject::Config Private
- Inherits:
-
Object
- Object
- Mutant::Subject::Config
- Includes:
- Unparser::Adamantium
- Defined in:
- lib/mutant/subject/config.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- DEFAULT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
new(inline_disable: false)
- DISABLE_REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/(\s|^)mutant:disable(?:\s|$)/.freeze
- SYNTAX_REGEXP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\A(?:#|=begin\n)/.freeze
Class Method Summary collapse
- .parse(comments) ⇒ Object private
Class Method Details
.parse(comments) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 |
# File 'lib/mutant/subject/config.rb', line 13 def self.parse(comments) new( inline_disable: comments.any? { |comment| DISABLE_REGEXP.match?(comment_body(comment)) } ) end |