class TJSON::DataType::Integer

Base class of integer types

Public Instance Methods

encode(int) click to toggle source
# File lib/tjson/datatype/integer.rb, line 7
def encode(int)
  # Integers are serialized as strings to sidestep the limits of some JSON parsers
  int.to_s
end