Psych::Handlers::Recorder - ri - phpman

Look up a command

 

Markdown Format | JSON API | MCP Server Tool


= Psych::Handlers::Recorder < Psych::Handler

(from gem psych-5.4.0)
------------------------------------------------------------------------
This handler will capture an event and record the event.  Recorder
events are available vial Psych::Handlers::Recorder#events.

For example:

  recorder = Psych::Handlers::Recorder.new
  parser = Psych::Parser.new recorder
  parser.parse '--- foo'

  recorder.events # => [list of events]

  # Replay the events

  emitter = Psych::Emitter.new $stdout
  recorder.events.each do |m, args|
    emitter.send m, *args
  end
------------------------------------------------------------------------
= Class methods:

  new

= Instance methods:

  events

= Attributes:

  attr_reader events


Generated by phpMan Author: Che Dong Under GNU General Public License
2026-06-02 05:17 @216.73.216.198 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!