Create a new streaming emitter. Emitter will print to io. See Psych::Stream for an example.
io
# File psych/lib/psych/streaming.rb, line 6 def initialize io super({}, self.class.const_get(:Emitter).new(io)) end
Start streaming using encoding
encoding
# File psych/lib/psych/streaming.rb, line 12 def start encoding = Nodes::Stream::UTF8 super.tap { yield self if block_given? } ensure finish if block_given? end
This page was generated for Ruby 2.0.0
Ruby-doc.org is a service of James Britt and Neurogami, an application development company in Scottsdale, AZ.
Generated with Ruby-doc Rdoc Generator 0.26.0.