Class: Hecks::Bluebook::DispatchSpec

Inherits:
Struct
  • Object
show all
Includes:
IR
Defined in:
lib/hecks/bluebook/process_manager.rb

Overview

compensates — a SECOND DispatchSpec, shape-identical to this one, naming the command that undoes THIS dispatch specifically (see ProcessManagerBuilder::HandlerBuilder#dispatch_impl's own comment). nil for a dispatch with nothing to undo (a pure bookkeeping mark, or one whose own effect is superseded by a later command rather than needing its own compensation). Never nested further — a compensation is not itself compensable; no known corpus need, and ADR 0025's own "a word earns its place by being used" bar would refuse a second level speculatively.

Instance Attribute Summary collapse

Method Summary

Methods included from IR

extended, included

Instance Attribute Details

#command_nameObject

Returns the value of attribute command_name

Returns:

  • (Object)

    the current value of command_name



15
16
17
# File 'lib/hecks/bluebook/process_manager.rb', line 15

def command_name
  @command_name
end

#compensatesObject

Returns the value of attribute compensates

Returns:

  • (Object)

    the current value of compensates



15
16
17
# File 'lib/hecks/bluebook/process_manager.rb', line 15

def compensates
  @compensates
end

#with_specObject

Returns the value of attribute with_spec

Returns:

  • (Object)

    the current value of with_spec



15
16
17
# File 'lib/hecks/bluebook/process_manager.rb', line 15

def with_spec
  @with_spec
end