Module: RuboCop::Ext::ProcessedSource

Defined in:
lib/rubocop/ext/processed_source.rb

Overview

Extensions to AST::ProcessedSource for our cached comment_config

Instance Method Summary collapse

Instance Method Details

#comment_configObject


7
8
9
# File 'lib/rubocop/ext/processed_source.rb', line 7

def comment_config
  @comment_config ||= CommentConfig.new(self)
end

#disabled_line_rangesObject


11
12
13
# File 'lib/rubocop/ext/processed_source.rb', line 11

def disabled_line_ranges
  comment_config.cop_disabled_line_ranges
end