Class: Docscribe::InlineRewriter::DocBlock::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/docscribe/inline_rewriter/doc_block.rb

Overview

One parsed entry inside a doc block.

‘kind` is:

  • ‘:tag` for a sortable top-level tag entry

  • ‘:other` for prose/separators/non-sortable content

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Attribute Details

.generatedObject

Parameters:

  • value (Object)

Returns:

  • (Object)


47
48
49
50
51
52
53
54
55
56
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

Entry = Struct.new(
  :kind,
  :tag,
  :lines,
  :subject,
  :option_owner,
  :generated,
  :index,
  keyword_init: true
)

.indexObject

Parameters:

  • value (Object)

Returns:

  • (Object)


47
48
49
50
51
52
53
54
55
56
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

Entry = Struct.new(
  :kind,
  :tag,
  :lines,
  :subject,
  :option_owner,
  :generated,
  :index,
  keyword_init: true
)

.kindObject

Parameters:

  • value (Object)

Returns:

  • (Object)


47
48
49
50
51
52
53
54
55
56
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

Entry = Struct.new(
  :kind,
  :tag,
  :lines,
  :subject,
  :option_owner,
  :generated,
  :index,
  keyword_init: true
)

.linesObject

Parameters:

  • value (Object)

Returns:

  • (Object)


47
48
49
50
51
52
53
54
55
56
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

Entry = Struct.new(
  :kind,
  :tag,
  :lines,
  :subject,
  :option_owner,
  :generated,
  :index,
  keyword_init: true
)

.option_ownerObject

Parameters:

  • value (Object)

Returns:

  • (Object)


47
48
49
50
51
52
53
54
55
56
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

Entry = Struct.new(
  :kind,
  :tag,
  :lines,
  :subject,
  :option_owner,
  :generated,
  :index,
  keyword_init: true
)

.subjectObject

Parameters:

  • value (Object)

Returns:

  • (Object)


47
48
49
50
51
52
53
54
55
56
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

Entry = Struct.new(
  :kind,
  :tag,
  :lines,
  :subject,
  :option_owner,
  :generated,
  :index,
  keyword_init: true
)

.tagObject

Parameters:

  • value (Object)

Returns:

  • (Object)


47
48
49
50
51
52
53
54
55
56
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

Entry = Struct.new(
  :kind,
  :tag,
  :lines,
  :subject,
  :option_owner,
  :generated,
  :index,
  keyword_init: true
)

Instance Attribute Details

#generated=(value) ⇒ Object

Sets the attribute generated

Parameters:

  • value (Object)

    the value to set the attribute generated to.

Returns:

  • (Object)

    the newly set value



47
48
49
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

def generated=(value)
  @generated = value
end

#index=(value) ⇒ Object

Sets the attribute index

Parameters:

  • value (Object)

    the value to set the attribute index to.

Returns:

  • (Object)

    the newly set value



47
48
49
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

def index=(value)
  @index = value
end

#kind=(value) ⇒ Object

Sets the attribute kind

Parameters:

  • value (Object)

    the value to set the attribute kind to.

Returns:

  • (Object)

    the newly set value



47
48
49
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

def kind=(value)
  @kind = value
end

#lines=(value) ⇒ Object

Sets the attribute lines

Parameters:

  • value (Object)

    the value to set the attribute lines to.

Returns:

  • (Object)

    the newly set value



47
48
49
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

def lines=(value)
  @lines = value
end

#option_owner=(value) ⇒ Object

Sets the attribute option_owner

Parameters:

  • value (Object)

    the value to set the attribute option_owner to.

Returns:

  • (Object)

    the newly set value



47
48
49
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

def option_owner=(value)
  @option_owner = value
end

#subject=(value) ⇒ Object

Sets the attribute subject

Parameters:

  • value (Object)

    the value to set the attribute subject to.

Returns:

  • (Object)

    the newly set value



47
48
49
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

def subject=(value)
  @subject = value
end

#tag=(value) ⇒ Object

Sets the attribute tag

Parameters:

  • value (Object)

    the value to set the attribute tag to.

Returns:

  • (Object)

    the newly set value



47
48
49
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 47

def tag=(value)
  @tag = value
end