# File lib/ruote/part/engine_participant.rb, line 108 def initialize(opts) if pa = opts['storage_path'] require pa end kl = opts['storage_class'] raise(ArgumentError.new("missing 'storage_class' parameter")) unless kl args = opts['storage_args'] args = args.is_a?(Hash) ? [ args ] : Array(args) args << {} unless args.last.is_a?(Hash) args.last['preserve_configuration'] = true @storage = Ruote.constantize(kl).new(*args) end