class Nocode::Steps::Deserialize::Yaml

Take a specified register and parse it as YAML to produce Ruby object(s).

NOTE: This will throw an error if unsafe YAML types are used. The only allowed types are array, hash, strings, numbers, booleans, nil. See: ruby-doc.org/stdlib-2.6.1/libdoc/psych/rdoc/Psych.html#method-c-safe_load

Public Instance Methods

perform() click to toggle source
# File lib/nocode/steps/deserialize/yaml.rb, line 14
def perform
  input = registers[register_option]

  registers[register_option] = YAML.safe_load(input)
end