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: syntax_error.rb
# frozen_string_literal: false require 'psych/exception' module Psych class SyntaxError < Psych::Exception attr_reader :file, :line, :column, :offset, :problem, :context def initialize file, line, col, offset, problem, context err = [problem, context].compact.join ' ' filename = file || '<unknown>' message = "(%s): %s at line %d column %d" % [filename, err, line, col] @file = file @line = line @column = col @offset = offset @problem = problem @context = context super(message) end end end
Upload File
Create Folder