Class: Ast::Merge::Recipe::Runner::StepResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge/recipe/runner.rb

Overview

Result of a single in-memory recipe step pipeline.

Instance Attribute Summary collapse

Instance Attribute Details

#changedBoolean (readonly)

Returns whether any step changed the content.

Returns:

  • (Boolean)

    whether any step changed the content



45
# File 'lib/ast/merge/recipe/runner.rb', line 45

StepResult = Struct.new(:content, :changed, :has_anchor, :message, :stats, :problems, keyword_init: true)

#contentString (readonly)

Returns resulting content after step execution.

Returns:

  • (String)

    resulting content after step execution



45
# File 'lib/ast/merge/recipe/runner.rb', line 45

StepResult = Struct.new(:content, :changed, :has_anchor, :message, :stats, :problems, keyword_init: true)

#has_anchorBoolean (readonly)

Returns whether the required anchor was found.

Returns:

  • (Boolean)

    whether the required anchor was found



45
# File 'lib/ast/merge/recipe/runner.rb', line 45

StepResult = Struct.new(:content, :changed, :has_anchor, :message, :stats, :problems, keyword_init: true)

#messageString? (readonly)

Returns human-readable status message.

Returns:

  • (String, nil)

    human-readable status message



45
# File 'lib/ast/merge/recipe/runner.rb', line 45

StepResult = Struct.new(:content, :changed, :has_anchor, :message, :stats, :problems, keyword_init: true)

#problemsArray<String> (readonly)

Returns non-fatal issues collected during execution.

Returns:

  • (Array<String>)

    non-fatal issues collected during execution



45
# File 'lib/ast/merge/recipe/runner.rb', line 45

StepResult = Struct.new(:content, :changed, :has_anchor, :message, :stats, :problems, keyword_init: true)

#statsHash (readonly)

Returns aggregated merge statistics.

Returns:

  • (Hash)

    aggregated merge statistics



45
# File 'lib/ast/merge/recipe/runner.rb', line 45

StepResult = Struct.new(:content, :changed, :has_anchor, :message, :stats, :problems, keyword_init: true)