This type map casts values based on the class or the ancestors of the given value to be sent.
Returns the encoder object for the given
Assigns a new
PG::Coder object to the type map. The encoder is chosen for all values that are a kind of the given
coder can be one of the following:
nil- Values are forwarded to the
PG::Coder- Values are encoded by the given encoder
a Symbol - The method of this type map (or a derivation) that is called for each value to sent. It must return a
a Proc - The Proc object is called for each value. It must return a
Returns all classes and their assigned encoder object.