Registry / serialization / psych
library5.4.0rbrubygemsunverified

YAML parser and emitter that wraps libyaml for parsing and serializing Ruby objects.

gem install psych
INSTALL
IMPORT
SIG · PSYCH
P
psych
serializationrubyv5.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Psych
require 'psych'

Parse a YAML string

require 'psych' data = Psych.load('name: Alice\nage: 30') puts data['name']
Debug
Known issues
breakingPsych 5.x changed default safe_load behavior; unsafe_load is required for arbitrary objects.
fix
Use Psych.unsafe_load or explicitly pass permitted_classes: [] to safe_load.
affects: >= 5.0.0
Upgrade
Version history
5.4.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
psych — gem install psych · libregistry