class Nocode::Steps::Serialize::Json

Take the contents of a register and serialize it as JSON. The serialized JSON will override the register specified.

Public Instance Methods

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

  registers[register_option] = input.to_json
end