Class: TJSON::DataType::NonScalar
- Inherits:
-
TJSON::DataType
- Object
- TJSON::DataType
- TJSON::DataType::NonScalar
- Defined in:
- lib/tjson/datatype.rb
Overview
Non-scalar types
Constant Summary
Constants inherited from TJSON::DataType
Instance Attribute Summary collapse
-
#inner_type ⇒ Object
readonly
Returns the value of attribute inner_type.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(inner_type) ⇒ NonScalar
constructor
A new instance of NonScalar.
- #inspect ⇒ Object
Methods inherited from TJSON::DataType
[], #decode, #encode, encode, identify_type, parse, #tag
Constructor Details
#initialize(inner_type) ⇒ NonScalar
Returns a new instance of NonScalar.
71 72 73 |
# File 'lib/tjson/datatype.rb', line 71 def initialize(inner_type) @inner_type = inner_type end |
Instance Attribute Details
#inner_type ⇒ Object (readonly)
Returns the value of attribute inner_type.
69 70 71 |
# File 'lib/tjson/datatype.rb', line 69 def inner_type @inner_type end |