Module: Transit

Defined in:
lib/transit.rb,
lib/transit/reader.rb,
lib/transit/writer.rb,
lib/transit/decoder.rb,
lib/transit/read_handlers.rb,
lib/transit/rolling_cache.rb,
lib/transit/transit_types.rb,
lib/transit/date_time_util.rb,
lib/transit/marshaler/base.rb,
lib/transit/write_handlers.rb,
lib/transit/marshaler/cruby/json.rb,
lib/transit/unmarshaler/cruby/json.rb,
lib/transit/marshaler/cruby/messagepack.rb,
lib/transit/unmarshaler/cruby/messagepack.rb

Overview

Copyright 2014 Cognitect. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Modules: DateTimeUtil, Marshaler, ReadHandlers, Unmarshaler, WriteHandlers Classes: ByteArray, Decoder, Link, Reader, RollingCache, Symbol, TaggedValue, UUID, Wrapper, Writer

Constant Summary collapse

ESC =
"~"
SUB =
"^"
RES =
"`"
TAG =
"~#"
MAP_AS_ARRAY =
"^ "
TIME_FORMAT =
"%FT%H:%M:%S.%LZ"
QUOTE =
"'"
MAX_INT =
2**63 - 1
MIN_INT =
-2**63
JSON_MAX_INT =
2**53 - 1
JSON_MIN_INT =
-JSON_MAX_INT

Class Method Summary collapse

Class Method Details

.jruby?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/transit.rb', line 70

def jruby?
  defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
end