class
Psych::Handler
v2_5_5 -
Show latest stable
- Superclass: Object
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
Constants
EVENTS = [ :alias,\n:empty,\n:end_document,\n:end_mapping,\n:end_sequence,\n:end_stream,\n:scalar,\n:start_document,\n:start_mapping,\n:start_sequence,\n:start_stream ]
OPTIONS = DumperOptions.new
Files
- ext/psych/lib/psych/handler.rb
- ext/psych/psych_emitter.c