Type:
Class
Constants:
OPTIONS : DumperOptions.new

Default dumping options

EVENTS : [ :alias, :empty, :end_document, :end_mapping, :end_sequence, :end_stream, :scalar, :start_document, :start_mapping, :start_sequence, :start_stream ]

Events that a Handler should respond to.

Psych::Handler is an abstract base class that defines the events used when dealing with Psych::Parser. Clients who want to use Psych::Parser should implement a class that inherits from Psych::Handler and define events that they can handle.

Psych::Handler defines all events that Psych::Parser can possibly send to event handlers.

See Psych::Parser for more details

scalar
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Handler

scalar(value, anchor, tag, plain, quoted, style) Instance Public methods Called

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

end_mapping() Instance Public methods Called when a map ends

2025-01-10 15:47:30
new
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Handler/Psych::Handler::DumperOptions

new() Class Public methods

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

start_stream(encoding) Instance Public methods Called with encoding

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

end_document(implicit) Instance Public methods Called with the document ends

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

alias(anchor) Instance Public methods Called when an alias is found to anchor

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

start_document(version, tag_directives, implicit) Instance Public methods Called

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

end_stream() Instance Public methods Called when the YAML stream ends

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

end_sequence() Instance Public methods Called when a sequence ends.

2025-01-10 15:47:30
streaming?
  • References/Ruby on Rails/Ruby/Classes/Psych/Psych::Handler

streaming?() Instance Public methods Is this handler a streaming handler?

2025-01-10 15:47:30