Class: TreeSitterLanguagePack::CodeChunk
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::CodeChunk
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#content ⇒ String
readonly
Returns the value of attribute content.
-
#end_byte ⇒ Integer
readonly
Returns the value of attribute end_byte.
-
#end_line ⇒ Integer
readonly
Returns the value of attribute end_line.
-
#metadata ⇒ ChunkContext
readonly
Returns the value of attribute metadata.
-
#start_byte ⇒ Integer
readonly
Returns the value of attribute start_byte.
-
#start_line ⇒ Integer
readonly
Returns the value of attribute start_line.
Instance Method Summary collapse
-
#initialize ⇒ CodeChunk
constructor
A new instance of CodeChunk.
Constructor Details
#initialize ⇒ CodeChunk
Returns a new instance of CodeChunk.
41 |
# File 'sig/types.rbs', line 41
def initialize: (?content: String, ?start_byte: Integer, ?end_byte: Integer, ?start_line: Integer, ?end_line: Integer, ?metadata: ChunkContext) -> void
|
Instance Attribute Details
#content ⇒ String (readonly)
Returns the value of attribute content.
34 35 36 |
# File 'sig/types.rbs', line 34 def content @content end |
#end_byte ⇒ Integer (readonly)
Returns the value of attribute end_byte.
36 37 38 |
# File 'sig/types.rbs', line 36 def end_byte @end_byte end |
#end_line ⇒ Integer (readonly)
Returns the value of attribute end_line.
38 39 40 |
# File 'sig/types.rbs', line 38 def end_line @end_line end |
#metadata ⇒ ChunkContext (readonly)
Returns the value of attribute metadata.
39 40 41 |
# File 'sig/types.rbs', line 39 def @metadata end |
#start_byte ⇒ Integer (readonly)
Returns the value of attribute start_byte.
35 36 37 |
# File 'sig/types.rbs', line 35 def start_byte @start_byte end |
#start_line ⇒ Integer (readonly)
Returns the value of attribute start_line.
37 38 39 |
# File 'sig/types.rbs', line 37 def start_line @start_line end |