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

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

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Attribute Details

.generatedBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


42
43
44
45
46
47
48
49
50
51
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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

.indexInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


42
43
44
45
46
47
48
49
50
51
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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

.kindSymbol

Parameters:

  • value (Symbol)

Returns:

  • (Symbol)


42
43
44
45
46
47
48
49
50
51
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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

.linesArray<String>

Parameters:

  • value (Array<String>)

Returns:

  • (Array<String>)


42
43
44
45
46
47
48
49
50
51
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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

.option_ownerString?

Parameters:

  • value (String?)

Returns:

  • (String?)


42
43
44
45
46
47
48
49
50
51
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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

.subjectString?

Parameters:

  • value (String?)

Returns:

  • (String?)


42
43
44
45
46
47
48
49
50
51
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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

.tagString

Parameters:

  • value (String)

Returns:

  • (String)


42
43
44
45
46
47
48
49
50
51
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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



42
43
44
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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



42
43
44
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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



42
43
44
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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



42
43
44
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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



42
43
44
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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



42
43
44
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

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



42
43
44
# File 'lib/docscribe/inline_rewriter/doc_block.rb', line 42

def tag=(value)
  @tag = value
end