Class: Reviewer::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/reviewer/context.rb

Overview

Bundles the shared runtime dependencies that flow through the review/format lifecycle. Passed from Session → Batch → Runner → Command so that no class needs to reach into module-level globals for arguments, output, or history.

Instance Attribute Summary collapse

Instance Attribute Details

#argumentsArguments

Returns the parsed command-line arguments.

Returns:

  • (Arguments)

    the parsed command-line arguments



14
# File 'lib/reviewer/context.rb', line 14

Context = Struct.new(:arguments, :output, :history, keyword_init: true)

#historyHistory

Returns the YAML store for timing data and prepare timestamps.

Returns:

  • (History)

    the YAML store for timing data and prepare timestamps



14
# File 'lib/reviewer/context.rb', line 14

Context = Struct.new(:arguments, :output, :history, keyword_init: true)

#outputOutput

Returns the output channel for displaying content.

Returns:

  • (Output)

    the output channel for displaying content



14
# File 'lib/reviewer/context.rb', line 14

Context = Struct.new(:arguments, :output, :history, keyword_init: true)