class RDocRuboCop::Lang::C::Comment::OneLine

Public Instance Methods

corrected_text() click to toggle source
# File lib/rdoc_rubocop/lang/c/comment/one_line.rb, line 6
def corrected_text
  "#{@begin_str}#{rdoc.apply}#{@end_str}"
end

Private Instance Methods

parse() click to toggle source
# File lib/rdoc_rubocop/lang/c/comment/one_line.rb, line 12
def parse
  @body = @comment_text.dup

  @begin_str = @body.slice!(%r(^/\*\s*))
  @end_str = @body.slice!(%r(\s*\*/$))
end