# File lib/simplecov/json.rb, line 14 def dump(string) if defined? ::JSON ::JSON.pretty_generate(string) else # Detect and use available MultiJson API - it changed in v1.3 if MultiJson.respond_to?(:adapter) MultiJson.dump(string) else MultiJson.encode(string) end end end
Generated with the Darkfish Rdoc Generator 2.