Class: CommentExtractor::CodeObject
- Inherits:
-
Object
- Object
- CommentExtractor::CodeObject
- Defined in:
- lib/comment_extractor/code_object.rb,
lib/comment_extractor/code_object/comment.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Comment
Instance Attribute Summary collapse
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value: nil, **others) ⇒ CodeObject
constructor
A new instance of CodeObject.
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
#metadata ⇒ Object
Returns the value of attribute metadata.
3 4 5 |
# File 'lib/comment_extractor/code_object.rb', line 3 def @metadata end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/comment_extractor/code_object.rb', line 3 def value @value end |