Class: Canopus::Configuration

Inherits:
Object
  • Object
show all
Defined in:
sig/task.rbs,
sig/debug.rbs

Constant Summary collapse

RELATIVE_PATH =

Returns:

  • (String)
MAX_BYTES =

Returns:

  • (Integer)
MAX_TASKS =

Returns:

  • (Integer)
MAX_PROBLEM_MATCHERS =

Returns:

  • (Integer)
MAX_DEPTH =

Returns:

  • (Integer)
MAX_COLLECTION_SIZE =

Returns:

  • (Integer)
MAX_STRING_BYTES =

Returns:

  • (Integer)
MAX_EXPANDED_BYTES =

Returns:

  • (Integer)
MAX_ENVIRONMENT_BYTES =

Returns:

  • (Integer)
VARIABLE =

Returns:

MAX_CONFIGURATIONS =

Returns:

  • (Integer)
MAX_EXPANDED_STRING_BYTES =

Returns:

  • (Integer)
MAX_TOTAL_EXPANDED_BYTES =

Returns:

  • (Integer)
MAX_ENVIRONMENT_ENTRY_BYTES =

Returns:

  • (Integer)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Configuration

Returns a new instance of Configuration.

Parameters:



19
# File 'sig/task.rbs', line 19

def initialize: (root: String, ?environment: untyped) -> void

Instance Attribute Details

#configurations ⇒ Array[Hash[String, Canopus::json]] (readonly)

Returns the value of attribute configurations.

Returns:

  • (Array[Hash[String, Canopus::json]])


16
17
18
# File 'sig/debug.rbs', line 16

def configurations
  @configurations
end

#problem_matchers ⇒ Hash[String, definition] (readonly)

Returns the value of attribute problem_matchers.

Returns:

  • (Hash[String, definition])


18
19
20
# File 'sig/task.rbs', line 18

def problem_matchers
  @problem_matchers
end

#root ⇒ String (readonly)

Returns the value of attribute root.

Returns:

  • (String)


16
17
18
# File 'sig/task.rbs', line 16

def root
  @root
end

#tasks ⇒ Array[definition] (readonly)

Returns the value of attribute tasks.

Returns:

  • (Array[definition])


17
18
19
# File 'sig/task.rbs', line 17

def tasks
  @tasks
end

Instance Method Details

#adapter ⇒ Hash[String, Canopus::json]

Parameters:

  • type (String)
  • file: (String, nil)
  • line_number: (Integer, nil)
  • selected_text: (String, nil)

Returns:

  • (Hash[String, Canopus::json])


20
# File 'sig/debug.rbs', line 20

def adapter: (String type, ?file: String?, ?line_number: Integer?, ?selected_text: String?) -> Hash[String, Canopus::json]

#problem_matcher ⇒ definition?

Parameters:

  • name (String)

Returns:

  • (definition, nil)


20
# File 'sig/task.rbs', line 20

def problem_matcher: (String name) -> definition?

#resolve ⇒ definition

Parameters:

  • task (String, definition)
  • file: (String, nil)
  • line_number: (Integer, nil)
  • selected_text: (String, nil)
  • configuration (String, Hash[String, Canopus::json])

Returns:

  • (definition)


21
# File 'sig/task.rbs', line 21

def resolve: (String | definition task, ?file: String?, ?line_number: Integer?, ?selected_text: String?) -> definition