Class: TJSON::DataType::Integer
- Inherits:
-
Scalar
- Object
- TJSON::DataType
- Scalar
- TJSON::DataType::Integer
- Defined in:
- lib/tjson/datatype/integer.rb
Overview
Base class of integer types
Direct Known Subclasses
Constant Summary
Constants inherited from TJSON::DataType
Instance Method Summary collapse
Methods inherited from Scalar
Methods inherited from TJSON::DataType
[], generate, identify_type, parse
Instance Method Details
#generate(int) ⇒ Object
7 8 9 10 |
# File 'lib/tjson/datatype/integer.rb', line 7 def generate(int) # Integers are serialized as strings to sidestep the limits of some JSON parsers int.to_s end |