X7ROOT File Manager
Current Path:
/opt/alt/ruby24/lib64/ruby/2.4.0/psych
opt
/
alt
/
ruby24
/
lib64
/
ruby
/
2.4.0
/
psych
/
ðŸ“
..
📄
class_loader.rb
(1.91 KB)
📄
coder.rb
(2.05 KB)
📄
core_ext.rb
(782 B)
📄
deprecated.rb
(2.52 KB)
📄
exception.rb
(265 B)
📄
handler.rb
(7.05 KB)
ðŸ“
handlers
ðŸ“
json
ðŸ“
nodes
📄
nodes.rb
(2.36 KB)
📄
omap.rb
(76 B)
📄
parser.rb
(1.67 KB)
📄
scalar_scanner.rb
(4.28 KB)
📄
set.rb
(75 B)
📄
stream.rb
(924 B)
📄
streaming.rb
(668 B)
📄
syntax_error.rb
(586 B)
📄
tree_builder.rb
(2.08 KB)
📄
versions.rb
(187 B)
ðŸ“
visitors
📄
visitors.rb
(237 B)
📄
y.rb
(191 B)
Editing: streaming.rb
# frozen_string_literal: false 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