Module: RuboCop::Ext::ProcessedSource

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

Overview

Extensions to AST::ProcessedSource for our cached comment_config

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



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

def config
  @config
end

#registryObject

Returns the value of attribute registry.



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

def registry
  @registry
end

Instance Method Details

#comment_configObject



9
10
11
# File 'lib/rubocop/ext/processed_source.rb', line 9

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

#disabled_line_rangesObject



13
14
15
# File 'lib/rubocop/ext/processed_source.rb', line 13

def disabled_line_ranges
  comment_config.cop_disabled_line_ranges
end