Class: TreeSitterLanguagePack::ImportInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImportInfo

Returns a new instance of ImportInfo.

Parameters:

  • source: (String)
  • items: (Array[String])
  • alias: (String)
  • is_wildcard: (Boolean)
  • span: (Span)


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

def initialize: (?source: String, ?items: Array[String], ?alias: String, ?is_wildcard: bool, ?span: Span) -> void

Instance Attribute Details

#aliasString?

Returns the value of attribute alias.

Returns:

  • (String, nil)


115
116
117
# File 'sig/types.rbs', line 115

def alias
  @alias
end

#is_wildcardBoolean?

Returns the value of attribute is_wildcard.

Returns:

  • (Boolean, nil)


116
117
118
# File 'sig/types.rbs', line 116

def is_wildcard
  @is_wildcard
end

#itemsArray[String]?

Returns the value of attribute items.

Returns:

  • (Array[String], nil)


114
115
116
# File 'sig/types.rbs', line 114

def items
  @items
end

#sourceString?

Returns the value of attribute source.

Returns:

  • (String, nil)


113
114
115
# File 'sig/types.rbs', line 113

def source
  @source
end

#spanSpan?

Returns the value of attribute span.

Returns:



117
118
119
# File 'sig/types.rbs', line 117

def span
  @span
end