lib/rambo/raml_models/headers.rb in rambo_ruby-0.3.0 vs lib/rambo/raml_models/headers.rb in rambo_ruby-0.3.1

- old
+ new

@@ -15,17 +15,10 @@ def merge!(other) add(other.headers) end def pretty - beginning = "{\n" - ending = "}" - - contents = headers.to_a.map {|pair| - "\t\"#{pair.first}\" => \"#{pair.last}\"\n" - } - - "#{beginning}#{contents.join("")}#{ending}" + JSON.pretty_generate(headers).gsub("\":", "\" =>") end end end end