123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::Ext::Comment

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rubocop/ext/comment.rb

Overview

Extensions to Parser::Source::Comment.

Instance Method Summary

Instance Method Details

#source

[ GitHub ]

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

def source
  loc.expression.source
end

#source_range

[ GitHub ]

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

def source_range
  loc.expression
end