123456789_123456789_123456789_123456789_123456789_

Module: Psych::Streaming

Relationships & Source Files
Namespace Children
Modules:
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: ext/psych/lib/psych/streaming.rb

Instance Method Summary

Instance Method Details

#register(target, obj) (private)

[ GitHub ]

  
# File 'ext/psych/lib/psych/streaming.rb', line 24

def register target, obj
end

#start(encoding = Nodes::Stream::UTF8)

Start streaming using encoding

[ GitHub ]

  
# File 'ext/psych/lib/psych/streaming.rb', line 17

def start encoding = Nodes::Stream::UTF8
  super.tap { yield self if block_given?  }
ensure
  finish if block_given?
end