Sha256: d3c8966b299bc5f9f494cbe0846ebf99d73bd476a513cc712c0a2b9f5cd32d71
Contents?: true
Size: 333 Bytes
Versions: 4
Compression:
Stored size: 333 Bytes
Contents
# frozen_string_literal: true module Delayed module JobGroups module YamlLoader def self.load(yaml) return yaml unless yaml.is_a?(String) && /^---/.match(yaml) YAML.load_dj(yaml) end def self.dump(object) return if object.nil? YAML.dump(object) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems