Class: RDocRuboCop::Lang::C::CommentExtractor
- Inherits:
-
Object
- Object
- RDocRuboCop::Lang::C::CommentExtractor
- Defined in:
- lib/rdoc_rubocop/lang/c/comment_extractor.rb
Instance Attribute Summary collapse
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
Instance Method Summary collapse
- #extract ⇒ Object
-
#initialize(source_file) ⇒ CommentExtractor
constructor
A new instance of CommentExtractor.
Constructor Details
#initialize(source_file) ⇒ CommentExtractor
Returns a new instance of CommentExtractor.
9 10 11 12 |
# File 'lib/rdoc_rubocop/lang/c/comment_extractor.rb', line 9 def initialize(source_file) @source_file = source_file @comments = [] end |
Instance Attribute Details
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
7 8 9 |
# File 'lib/rdoc_rubocop/lang/c/comment_extractor.rb', line 7 def comments @comments end |
Instance Method Details
#extract ⇒ Object
14 15 16 |
# File 'lib/rdoc_rubocop/lang/c/comment_extractor.rb', line 14 def extract @comments = extract_comments end |