Class: TreeSitterLanguagePack::DocstringFormatOther

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
DocstringFormat
Defined in:
lib/tree_sitter_language_pack/native.rb

Overview

A language-specific docstring format not covered by the standard variants.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



573
574
575
# File 'lib/tree_sitter_language_pack/native.rb', line 573

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



595
596
597
# File 'lib/tree_sitter_language_pack/native.rb', line 595

def self.from_hash(hash)
  new(value: hash[:value] || hash["value"])
end

Instance Method Details

#go_doc?Boolean

Returns:

  • (Boolean)


587
# File 'lib/tree_sitter_language_pack/native.rb', line 587

def go_doc? = false

#java_doc?Boolean

Returns:

  • (Boolean)


589
# File 'lib/tree_sitter_language_pack/native.rb', line 589

def java_doc? = false

#js_doc?Boolean

Returns:

  • (Boolean)


583
# File 'lib/tree_sitter_language_pack/native.rb', line 583

def js_doc? = false

#other?Boolean

Returns:

  • (Boolean)


591
592
593
# File 'lib/tree_sitter_language_pack/native.rb', line 591

def other? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]

#python_triple_quote?Boolean

Returns:

  • (Boolean)


581
# File 'lib/tree_sitter_language_pack/native.rb', line 581

def python_triple_quote? = false

#rustdoc?Boolean

Returns:

  • (Boolean)


585
# File 'lib/tree_sitter_language_pack/native.rb', line 585

def rustdoc? = false