Class: RuboCop::Cop::YardocBase::CommentEntry
- Inherits:
-
Struct
- Object
- Struct
- RuboCop::Cop::YardocBase::CommentEntry
- Defined in:
- lib/rubocop/cop/yardoc_base.rb
Overview
Represents a comment entry (it may be a multi-line comment)
Instance Attribute Summary collapse
-
#blank ⇒ Object
Returns the value of attribute blank.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#line ⇒ Object
Returns the value of attribute line.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Whether the comment is empty.
Instance Attribute Details
#blank ⇒ Object
Returns the value of attribute blank
10 11 12 |
# File 'lib/rubocop/cop/yardoc_base.rb', line 10 def blank @blank end |
#comment ⇒ Object
Returns the value of attribute comment
10 11 12 |
# File 'lib/rubocop/cop/yardoc_base.rb', line 10 def comment @comment end |
#line ⇒ Object
Returns the value of attribute line
10 11 12 |
# File 'lib/rubocop/cop/yardoc_base.rb', line 10 def line @line end |
#tag ⇒ Object
Returns the value of attribute tag
10 11 12 |
# File 'lib/rubocop/cop/yardoc_base.rb', line 10 def tag @tag end |
#text ⇒ Object
Returns the value of attribute text
10 11 12 |
# File 'lib/rubocop/cop/yardoc_base.rb', line 10 def text @text end |
Instance Method Details
#blank? ⇒ Boolean
Whether the comment is empty
14 15 16 |
# File 'lib/rubocop/cop/yardoc_base.rb', line 14 def blank? blank end |