y( object, *objects ) private

Prints any supplied objects out in YAML. Intended as a variation on +Kernel::p+.

S = Struct.new(:name, :state)
s = S['dave', 'TX']
y s

produces:

--- !ruby/struct:S 
name: dave
state: TX
Show source
Register or log in to add new notes.