Class: TreeSitterLanguagePack::DocstringFormatOther
- Inherits:
-
Data
- Object
- Data
- TreeSitterLanguagePack::DocstringFormatOther
- 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
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #go_doc? ⇒ Boolean
- #java_doc? ⇒ Boolean
- #js_doc? ⇒ Boolean
- #other? ⇒ Boolean
- #python_triple_quote? ⇒ Boolean
- #rustdoc? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (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
587 |
# File 'lib/tree_sitter_language_pack/native.rb', line 587 def go_doc? = false |
#java_doc? ⇒ Boolean
589 |
# File 'lib/tree_sitter_language_pack/native.rb', line 589 def java_doc? = false |
#js_doc? ⇒ Boolean
583 |
# File 'lib/tree_sitter_language_pack/native.rb', line 583 def js_doc? = false |
#other? ⇒ 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
581 |
# File 'lib/tree_sitter_language_pack/native.rb', line 581 def python_triple_quote? = false |
#rustdoc? ⇒ Boolean
585 |
# File 'lib/tree_sitter_language_pack/native.rb', line 585 def rustdoc? = false |