# Psych::Coder - ri - phpman

= [**Psych::Coder](https://www.chedong.com/phpMan.php/perldoc/Psych%3A%3ACoder/markdown) < Object**

(from gem psych-5.4.0)
------------------------------------------------------------------------
## If an object defines encodewith, then an instance of [Psych::Coder](https://www.chedong.com/phpMan.php/perldoc/Psych%3A%3ACoder/markdown) will
be passed to the method when the object is being serialized.  The Coder
automatically assumes a [Psych::Nodes::Mapping](https://www.chedong.com/phpMan.php/perldoc/Psych%3A%3ANodes%3A%3AMapping/markdown) is being emitted.  Other
objects like Sequence and Scalar may be emitted if seq= or scalar= are
called, respectively.
------------------------------------------------------------------------
= **Class methods:**

  new

= **Instance methods:**

  []
  []=
  add
  implicit
  map
  map=
  object
  represent_map
  represent_object
  represent_scalar
  represent_seq
  scalar
  scalar=
  seq
  seq=
  style
  tag
  type

= **Attributes:**

  attr_accessor implicit
  attr_accessor object
  attr_accessor style
  attr_accessor tag
  attr_reader seq
  attr_reader type

