File: json_dumper.rb

package info (click to toggle)
ruby-gon 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 496 kB
  • ctags: 145
  • sloc: ruby: 1,416; makefile: 5
file content (8 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
class Gon
  module JsonDumper
    def self.dump(object)
      MultiJson.dump object,
        mode: :compat, escape_mode: :xss_safe, time_format: :ruby
    end
  end
end