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)


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

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

Instance Attribute Details

#aliasString? (readonly)

Returns the value of attribute alias.

Returns:

  • (String, nil)


128
129
130
# File 'sig/types.rbs', line 128

def alias
  @alias
end

#is_wildcardBoolean (readonly)

Returns the value of attribute is_wildcard.

Returns:

  • (Boolean)


129
130
131
# File 'sig/types.rbs', line 129

def is_wildcard
  @is_wildcard
end

#itemsArray[String] (readonly)

Returns the value of attribute items.

Returns:

  • (Array[String])


127
128
129
# File 'sig/types.rbs', line 127

def items
  @items
end

#sourceString (readonly)

Returns the value of attribute source.

Returns:

  • (String)


126
127
128
# File 'sig/types.rbs', line 126

def source
  @source
end

#spanSpan (readonly)

Returns the value of attribute span.

Returns:



130
131
132
# File 'sig/types.rbs', line 130

def span
  @span
end