Class: CommentExtractor::CodeObject::Comment
- Inherits:
-
CommentExtractor::CodeObject
- Object
- CommentExtractor::CodeObject
- CommentExtractor::CodeObject::Comment
- Defined in:
- lib/comment_extractor/code_object/comment.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#line ⇒ Object
Returns the value of attribute line.
Attributes inherited from CommentExtractor::CodeObject
Instance Method Summary collapse
-
#initialize(line: line, **values) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(line: line, **values) ⇒ Comment
Returns a new instance of Comment.
13 14 15 16 |
# File 'lib/comment_extractor/code_object/comment.rb', line 13 def initialize(line: line, **values) super(**values) @line = line end |
Instance Attribute Details
#line ⇒ Object
Returns the value of attribute line.
6 7 8 |
# File 'lib/comment_extractor/code_object/comment.rb', line 6 def line @line end |