Sha256: 57bbeb627293da4e95defdf85031cb926feac5bd9c2fae340c7df0f74d58b013
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true module Fixturizer module Rspec module Helpers class Serializer include Singleton def to(format:, data:, raw: false, to_file: nil) options = {} options[:raw] = raw options[:to_file] = to_file Fixturizer::Services.get.serializer(name: format, parameters: { data: data, options: options }).apply end end end end end def serialize Fixturizer::Rspec::Helpers::Serializer.instance end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fixturizer-0.4.4 | lib/fixturizer/rspec/helpers/serializer.rb |
fixturizer-0.4.3 | lib/fixturizer/rspec/helpers/serializer.rb |