Class: TreeSitterLanguagePack::DataAttribute

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDataAttribute

Returns a new instance of DataAttribute.

Parameters:

  • name: (String)
  • value: (String)
  • span: (Span)


17
# File 'sig/types.rbs', line 17

def initialize: (?name: String, ?value: String, ?span: Span) -> void

Instance Attribute Details

#nameString?

Returns the value of attribute name.

Returns:

  • (String, nil)


13
14
15
# File 'sig/types.rbs', line 13

def name
  @name
end

#spanSpan?

Returns the value of attribute span.

Returns:



15
16
17
# File 'sig/types.rbs', line 15

def span
  @span
end

#valueString?

Returns the value of attribute value.

Returns:

  • (String, nil)


14
15
16
# File 'sig/types.rbs', line 14

def value
  @value
end