Class: Xberg::CodeChunkInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCodeChunkInfo

Returns a new instance of CodeChunkInfo.

Parameters:

  • text: (String)
  • context_path: (Array[String])
  • node_types: (Array[String])
  • byte_start: (Integer)
  • byte_end: (Integer)


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

def initialize: (text: String, context_path: Array[String], node_types: Array[String], byte_start: Integer, byte_end: Integer) -> void

Instance Attribute Details

#byte_endInteger (readonly)

Returns the value of attribute byte_end.

Returns:

  • (Integer)


1275
1276
1277
# File 'sig/types.rbs', line 1275

def byte_end
  @byte_end
end

#byte_startInteger (readonly)

Returns the value of attribute byte_start.

Returns:

  • (Integer)


1274
1275
1276
# File 'sig/types.rbs', line 1274

def byte_start
  @byte_start
end

#context_pathArray[String] (readonly)

Returns the value of attribute context_path.

Returns:

  • (Array[String])


1272
1273
1274
# File 'sig/types.rbs', line 1272

def context_path
  @context_path
end

#node_typesArray[String] (readonly)

Returns the value of attribute node_types.

Returns:

  • (Array[String])


1273
1274
1275
# File 'sig/types.rbs', line 1273

def node_types
  @node_types
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


1271
1272
1273
# File 'sig/types.rbs', line 1271

def text
  @text
end