Sha256: c6fbd8e7e9d4dbb5536ff6655f483b6aa3f751548b3054f0fd952b36f72a657a
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
require 'active_support/all' class FalseClass def to_builder self.inspect end end class TrueClass def to_builder self.inspect end end class String def to_builder self.inspect end end class Hash def to_builder self.to_json end end class NilClass def to_builder 'null' end end class Time def to_builder self.strftime("%Y-%m-%dT%H:%M:%S").inspect end end class Date def to_builder self.strftime("%Y-%m-%dT%H:%M:%S").inspect end end class DateTime def to_builder self.strftime("%Y-%m-%dT%H:%M:%S").inspect end end module BSON class ObjectId def to_builder self.to_s.inspect end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_builder-3.0.6 | lib/json_builder/extensions.rb |