Type:
Class

If an object defines encode_with, then an instance of Psych::Coder will be passed to the method when the object is being serialized. The Coder automatically assumes a Psych::Nodes::Mapping is being emitted. Other objects like Sequence and Scalar may be emitted if seq= or scalar= are called, respectively.

represent_scalar
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

represent_scalar(tag, value) Instance Public methods Emit a scalar with value

2025-01-10 15:47:30
map
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

map(tag = @tag, style = @style) Instance Public methods Emit a map. The coder

2025-01-10 15:47:30
scalar
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

scalar(*args) Instance Public methods

2025-01-10 15:47:30
represent_object
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

represent_object(tag, obj) Instance Public methods Emit an arbitrary object

2025-01-10 15:47:30
represent_map
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

represent_map(tag, map) Instance Public methods Emit a sequence with map

2025-01-10 15:47:30
[]=
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

[]=(k, v) Instance Public methods Also aliased as:

2025-01-10 15:47:30
scalar=
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

scalar=(value) Instance Public methods Emit a scalar with value

2025-01-10 15:47:30
seq=
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

seq=(list) Instance Public methods Emit a sequence of list

2025-01-10 15:47:30
represent_seq
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

represent_seq(tag, list) Instance Public methods Emit a sequence with list

2025-01-10 15:47:30
map=
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Coder

map=(map) Instance Public methods Emit a map with value

2025-01-10 15:47:30