Class: RDocRuboCop::Lang::Base::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc_rubocop/lang/base/comment.rb

Direct Known Subclasses

C::Comment, Ruby::Comment

Instance Method Summary collapse

Instance Method Details

#rdocObject

def initialize(comment, source_file = nil)

@comment = comment
@source_file = source_file

end



12
13
14
# File 'lib/rdoc_rubocop/lang/base/comment.rb', line 12

def rdoc
  @rdoc ||= RDoc.new(text_without_commentchar)
end

#source_codesObject



16
17
18
# File 'lib/rdoc_rubocop/lang/base/comment.rb', line 16

def source_codes
  @source_codes ||= extract_source_codes
end