Class: TJSON::DataType::Scalar

Inherits:
TJSON::DataType show all
Defined in:
lib/tjson/datatype.rb

Overview

Scalar types

Direct Known Subclasses

Binary, Integer, Number, String, Timestamp

Constant Summary

Constants inherited from TJSON::DataType

TAGS

Instance Method Summary collapse

Methods inherited from TJSON::DataType

[], generate, identify_type, parse

Instance Method Details

#inspectObject



51
52
53
# File 'lib/tjson/datatype.rb', line 51

def inspect
  "#<#{self.class}>"
end

#scalar?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/tjson/datatype.rb', line 47

def scalar?
  true
end