class Stargate::Marshal::Payload
Internal: We need some packaging to move stuff from one machine to another. We have to know what types are coming in. We distinguish four base types:
-
Simple type (string, number, booleans),
-
Symbol,
-
List (Array),
-
Hash
Later, we can pack any other type that has been registered for exchange.
Constants
- HASH
- LIST
- SIMPLE
- SYMBOL
Public Instance Methods
inspect()
click to toggle source
# File lib/stargate/marshal/payload.rb, line 26 def inspect serialize.inspect end
serialize()
click to toggle source
# File lib/stargate/marshal/payload.rb, line 22 def serialize [ type, data ] end