Class: TreeSitterLanguagePack::SymbolKindOther
- Inherits:
-
Data
- Object
- Data
- TreeSitterLanguagePack::SymbolKindOther
- Extended by:
- T::Sig
- Includes:
- SymbolKind
- Defined in:
- lib/tree_sitter_language_pack/native.rb
Overview
A symbol kind 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
- #class? ⇒ Boolean
- #constant? ⇒ Boolean
- #enum? ⇒ Boolean
- #function? ⇒ Boolean
- #interface? ⇒ Boolean
- #module? ⇒ Boolean
- #other? ⇒ Boolean
- #type? ⇒ Boolean
- #variable? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
873 874 875 |
# File 'lib/tree_sitter_language_pack/native.rb', line 873 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
901 902 903 |
# File 'lib/tree_sitter_language_pack/native.rb', line 901 def self.from_hash(hash) new(value: hash[:value] || hash["value"]) end |
Instance Method Details
#class? ⇒ Boolean
887 |
# File 'lib/tree_sitter_language_pack/native.rb', line 887 def class? = false |
#constant? ⇒ Boolean
883 |
# File 'lib/tree_sitter_language_pack/native.rb', line 883 def constant? = false |
#enum? ⇒ Boolean
893 |
# File 'lib/tree_sitter_language_pack/native.rb', line 893 def enum? = false |
#function? ⇒ Boolean
885 |
# File 'lib/tree_sitter_language_pack/native.rb', line 885 def function? = false |
#interface? ⇒ Boolean
891 |
# File 'lib/tree_sitter_language_pack/native.rb', line 891 def interface? = false |
#module? ⇒ Boolean
895 |
# File 'lib/tree_sitter_language_pack/native.rb', line 895 def module? = false |
#other? ⇒ Boolean
897 898 899 |
# File 'lib/tree_sitter_language_pack/native.rb', line 897 def other? = true # @param hash [Hash] deserialized from the native extension # @return [self] |
#type? ⇒ Boolean
889 |
# File 'lib/tree_sitter_language_pack/native.rb', line 889 def type? = false |
#variable? ⇒ Boolean
881 |
# File 'lib/tree_sitter_language_pack/native.rb', line 881 def variable? = false |