Class: CommentExtractor::CodeObject

Inherits:
Object
  • Object
show all
Defined in:
lib/comment_extractor/code_object.rb,
lib/comment_extractor/code_object/comment.rb

Direct Known Subclasses

Comment

Defined Under Namespace

Classes: Comment

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value: nil, **others) ⇒ CodeObject

Returns a new instance of CodeObject.



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

def initialize(value: nil, **others)
  @value = value
  @metadata = others
end

Instance Attribute Details

#metadataObject

Returns the value of attribute metadata.



3
4
5
# File 'lib/comment_extractor/code_object.rb', line 3

def 
  @metadata
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/comment_extractor/code_object.rb', line 3

def value
  @value
end