In Files

  • ruby-3.1.2/ext/psych/lib/psych/streaming.rb

Files

Class/Module Index [+]

Quicksearch

Psych::Streaming

Public Instance Methods

start(encoding = Nodes::Stream::UTF8) click to toggle source

Start streaming using encoding

 
               # File ruby-3.1.2/ext/psych/lib/psych/streaming.rb, line 18
def start encoding = Nodes::Stream::UTF8
  super.tap { yield self if block_given?  }
ensure
  finish if block_given?
end
            

Private Instance Methods

register(target, obj) click to toggle source
 
               # File ruby-3.1.2/ext/psych/lib/psych/streaming.rb, line 25
def register target, obj
end