Class: RuboCop::CommentConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/standard/rubocop/ext.rb

Instance Method Summary collapse

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_initializeObject



18
# File 'lib/standard/rubocop/ext.rb', line 18

alias_method :old_initialize, :initialize