X7ROOT File Manager
Current Path:
/opt/alt/ruby27/share/gems/gems/psych-3.1.0/lib/psych
opt
/
alt
/
ruby27
/
share
/
gems
/
gems
/
psych-3.1.0
/
lib
/
psych
/
??
..
??
class_loader.rb
(1.91 KB)
??
coder.rb
(2.05 KB)
??
core_ext.rb
(359 B)
??
exception.rb
(264 B)
??
handler.rb
(7.2 KB)
??
handlers
??
json
??
nodes
??
nodes.rb
(2.35 KB)
??
omap.rb
(75 B)
??
parser.rb
(1.67 KB)
??
scalar_scanner.rb
(4.14 KB)
??
set.rb
(74 B)
??
stream.rb
(923 B)
??
streaming.rb
(667 B)
??
syntax_error.rb
(585 B)
??
tree_builder.rb
(2.98 KB)
??
versions.rb
(222 B)
??
visitors
??
visitors.rb
(236 B)
??
y.rb
(190 B)
Editing: streaming.rb
# frozen_string_literal: true module Psych module Streaming module ClassMethods ### # Create a new streaming emitter. Emitter will print to +io+. See # Psych::Stream for an example. def new io emitter = const_get(:Emitter).new(io) class_loader = ClassLoader.new ss = ScalarScanner.new class_loader super(emitter, ss, {}) end end ### # Start streaming using +encoding+ def start encoding = Nodes::Stream::UTF8 super.tap { yield self if block_given? } ensure finish if block_given? end private def register target, obj end end end
Upload File
Create Folder