Sha256: 27c734fa9005565908b3752b1afde1371d83a3e899246b55844a55ba40ffd664
Contents?: true
Size: 807 Bytes
Versions: 8
Compression:
Stored size: 807 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2020-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # module Burner module Library module Value # Arbitrarily set the value of a register. # # Expected Payload[register] input: anything. # Payload[register] output: whatever value was specified in this job. class Static < JobWithRegister attr_reader :value def initialize(name: '', register: DEFAULT_REGISTER, value: nil) super(name: name, register: register) @value = value freeze end def perform(_output, payload) payload[register] = value end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems