Class: CommentExtractor::CodeObject::Comment

Inherits:
CommentExtractor::CodeObject show all
Defined in:
lib/comment_extractor/code_object/comment.rb

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Attributes inherited from CommentExtractor::CodeObject

#metadata, #value

Instance Method Summary collapse

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

#lineObject

Returns the value of attribute line.



6
7
8
# File 'lib/comment_extractor/code_object/comment.rb', line 6

def line
  @line
end