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
-
#config ⇒ Object
Returns the value of attribute config.
-
#registry ⇒ Object
Returns the value of attribute registry.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
7 8 9 |
# File 'lib/rubocop/ext/processed_source.rb', line 7 def config @config end |
#registry ⇒ Object
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_config ⇒ Object
9 10 11 |
# File 'lib/rubocop/ext/processed_source.rb', line 9 def comment_config @comment_config ||= CommentConfig.new(self) end |
#disabled_line_ranges ⇒ Object
13 14 15 |
# File 'lib/rubocop/ext/processed_source.rb', line 13 def disabled_line_ranges comment_config.cop_disabled_line_ranges end |