class RSpecRcv::Codecs::PrettyJson

Public Instance Methods

decode_with(str) click to toggle source
# File lib/rspec-rcv/codecs/pretty_json.rb, line 10
def decode_with(str)
  JSON.parse(str)
end
export_with(hash) click to toggle source
# File lib/rspec-rcv/codecs/pretty_json.rb, line 6
def export_with(hash)
  JSON.pretty_generate(hash)
end