module YARP::Serialize
Constants
- MAJOR_VERSION
- MINOR_VERSION
- PATCH_VERSION
- TOKEN_TYPES
Public Class Methods
load(input, serialized)
click to toggle source
# File yarp/serialize.rb, line 27 def self.load(input, serialized) input = input.dup source = Source.new(input) loader = Loader.new(source, serialized) result = loader.load_result input.force_encoding(loader.encoding) result end
load_tokens(source, serialized)
click to toggle source
# File yarp/serialize.rb, line 37 def self.load_tokens(source, serialized) Loader.new(source, serialized).load_tokens_result end