module Delayed::JobGroups::YamlLoader
Public Class Methods
dump(object)
click to toggle source
# File lib/delayed/job_groups/yaml_loader.rb, line 12 def self.dump(object) return if object.nil? YAML.dump(object) end
load(yaml)
click to toggle source
# File lib/delayed/job_groups/yaml_loader.rb, line 6 def self.load(yaml) return yaml unless yaml.is_a?(String) && /^---/.match(yaml) YAML.load_dj(yaml) end