Class: RuboCop::CommentConfig
- Inherits:
-
Object
- Object
- RuboCop::CommentConfig
- Defined in:
- lib/standard/rubocop/ext.rb
Instance Method Summary collapse
-
#initialize(processed_source) ⇒ CommentConfig
constructor
A new instance of CommentConfig.
- #old_initialize ⇒ Object
Constructor Details
#initialize(processed_source) ⇒ CommentConfig
Returns a new instance of CommentConfig.
20 21 22 23 |
# File 'lib/standard/rubocop/ext.rb', line 20 def initialize(processed_source) old_initialize(processed_source) @no_directives &&= !processed_source.raw_source.include?("standard") end |
Instance Method Details
#old_initialize ⇒ Object
18 |
# File 'lib/standard/rubocop/ext.rb', line 18 alias_method :old_initialize, :initialize |