Module: RuboCop::Ext::Comment

Included in:
CommentConfig::ConfigDisabledCopDirectiveComment
Defined in:
lib/rubocop/ext/comment.rb

Overview

Extensions to ‘Parser::Source::Comment`.

Instance Method Summary collapse

Instance Method Details

#sourceObject



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

def source
  loc.expression.source
end

#source_rangeObject



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

def source_range
  loc.expression
end