Class: RuboCop::Cop::Yardoc::ParamDescriptionCasing::CommentEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubocop/cop/yardoc/param_description_casing.rb

Overview

Represents a comment entry (it may be a multi-line comment)

Returns:

  • (Struct)

    With :comment, :text, :tag, :line, :blank?

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blankObject

Returns the value of attribute blank

Returns:

  • (Object)

    the current value of blank



27
28
29
# File 'lib/rubocop/cop/yardoc/param_description_casing.rb', line 27

def blank
  @blank
end

#commentObject

Returns the value of attribute comment

Returns:

  • (Object)

    the current value of comment



27
28
29
# File 'lib/rubocop/cop/yardoc/param_description_casing.rb', line 27

def comment
  @comment
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



27
28
29
# File 'lib/rubocop/cop/yardoc/param_description_casing.rb', line 27

def line
  @line
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



27
28
29
# File 'lib/rubocop/cop/yardoc/param_description_casing.rb', line 27

def tag
  @tag
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



27
28
29
# File 'lib/rubocop/cop/yardoc/param_description_casing.rb', line 27

def text
  @text
end

Instance Method Details

#blank?Boolean

Whether the comment is empty

Returns:

  • (Boolean)


31
32
33
# File 'lib/rubocop/cop/yardoc/param_description_casing.rb', line 31

def blank?
  blank
end