Class: Smith::Tool::ExecutionBatchSources

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/tool/execution_batch_sources.rb

Instance Method Summary collapse

Instance Method Details

#callObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/smith/tool/execution_batch_sources.rb', line 12

def call
  bytes = 0
   = entries.each_with_object([]) do |(key, tool_call), captured|
    source = ExecutionBatchSourceMetadata.capture(key:, tool_call:)
    bytes += source.
    validate_bytes!(bytes)
    captured << source
  end.freeze
  .map(&:to_source_call).freeze
end