Class: RDocRuboCop::Lang::Base::Comment
- Inherits:
-
Object
- Object
- RDocRuboCop::Lang::Base::Comment
- Defined in:
- lib/rdoc_rubocop/lang/base/comment.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#rdoc ⇒ Object
def initialize(comment, source_file = nil) @comment = comment @source_file = source_file end.
- #source_codes ⇒ Object
Instance Method Details
#rdoc ⇒ Object
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_codes ⇒ Object
16 17 18 |
# File 'lib/rdoc_rubocop/lang/base/comment.rb', line 16 def source_codes @source_codes ||= extract_source_codes end |