Class: YARD::Parser::Ruby::CommentNode
- Defined in:
- lib/yard/parser/ruby/ast_node.rb
Overview
Represents a lone comment block in source
Constant Summary
Constants inherited from AstNode
Instance Attribute Summary
Attributes inherited from AstNode
#docstring_hash_flag, #docstring_range, #file, #full_source, #group, #line_range, #parent, #source_range, #type
Managing node state collapse
- #docstring ⇒ Object (also: #comments)
- #docstring=(value) ⇒ Object
- #first_line ⇒ Object
- #source ⇒ Object
Methods inherited from AstNode
#==, #block?, #call?, #children, #condition?, #def?, #has_line?, #initialize, #inspect, #jump, #kw?, #line, #literal?, #loop?, node_class_for, #pretty_print, #ref?, #show, #to_s, #token?, #traverse, #unfreeze
Methods inherited from Array
Constructor Details
This class inherits a constructor from YARD::Parser::Ruby::AstNode
Instance Method Details
#docstring ⇒ Object Also known as: comments
549 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 549 def docstring; first end |
#docstring=(value) ⇒ Object
550 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 550 def docstring=(value) end |
#first_line ⇒ Object
554 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 554 def first_line; "" end |
#source ⇒ Object
553 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 553 def source; "" end |