123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::Ext::ProcessedSource

Relationships & Source Files
Defined in: lib/rubocop/ext/processed_source.rb

Overview

Extensions to AST::ProcessedSource for our cached comment_config

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#config (rw)

[ GitHub ]

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

attr_accessor :registry, :config

#registry (rw)

[ GitHub ]

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

attr_accessor :registry, :config

Instance Method Details

#comment_config

[ GitHub ]

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

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

#disabled_line_ranges

[ GitHub ]

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

def disabled_line_ranges
  comment_config.cop_disabled_line_ranges
end