Sha256: 715507f09b2a0b05c16b8c77b57416ea365850e1eaf0d5baa1863d1609a70c75

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 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
  class Jobs
    module Serialize
      # Treat value like a Ruby object and serialize it using YAML.
      class Yaml < Job
        def perform(_output, payload)
          payload.value = payload.value.to_yaml

          nil
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
burner-1.0.0.pre.alpha.5 lib/burner/jobs/serialize/yaml.rb
burner-1.0.0.pre.alpha.4 lib/burner/jobs/serialize/yaml.rb