Sha256: c5760113aafb8bb47cd1794b4d830722d0489ae1513a31b031d90ad67f77f663

Contents?: true

Size: 423 Bytes

Versions: 7

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module Nocode
  module Steps
    module Serialize
      # Take the contents of a register and serialize it as YAML.  The serialized YAML
      # will override the register specified.
      class Yaml < Step
        option :register

        def perform
          input = registers[register_option]

          registers[register_option] = input.to_yaml
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nocode-0.0.10 lib/nocode/steps/serialize/yaml.rb
nocode-0.0.9 lib/nocode/steps/serialize/yaml.rb
nocode-0.0.8 lib/nocode/steps/serialize/yaml.rb
nocode-0.0.7 lib/nocode/steps/serialize/yaml.rb
nocode-0.0.6 lib/nocode/steps/serialize/yaml.rb
nocode-0.0.5 lib/nocode/steps/serialize/yaml.rb
nocode-0.0.4 lib/nocode/steps/serialize/yaml.rb