⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Psych
/
View File Name :
safe_load-c.ri
U:RDoc::AnyMethod[iI"safe_load:ETI"Psych::safe_load;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LSafely load the yaml string in +yaml+. By default, only the following ;TI",classes are allowed to be deserialized:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"TrueClass;To;;0; [o; ; [I"FalseClass;To;;0; [o; ; [I" NilClass;To;;0; [o; ; [I"Numeric;To;;0; [o; ; [I"String;To;;0; [o; ; [I" Array;To;;0; [o; ; [I" Hash;T@o; ; [I"NRecursive data structures are not allowed by default. Arbitrary classes ;TI"ccan be allowed by adding those classes to the +permitted_classes+ keyword argument. They are ;TI";additive. For example, to allow Date deserialization:;T@o:RDoc::Markup::Verbatim; [I"6Psych.safe_load(yaml, permitted_classes: [Date]) ;T:@format0o; ; [I"NNow the Date class can be loaded in addition to the classes listed above.;T@o; ; [I"SAliases can be explicitly allowed by changing the +aliases+ keyword argument. ;TI"For example:;T@o;; [ I"x = [] ;TI"x << x ;TI"yaml = Psych.dump x ;TI"APsych.safe_load yaml # => raises an exception ;TI"@Psych.safe_load yaml, aliases: true # => loads the aliases ;T;0o; ; [I"NA Psych::DisallowedClass exception will be raised if the yaml contains a ;TI"6class that isn't in the +permitted_classes+ list.;T@o; ; [I"MA Psych::BadAlias exception will be raised if the yaml contains aliases ;TI"8but the +aliases+ keyword argument is set to false.;T@o; ; [I"Q+filename+ will be used in the exception message if any exception is raised ;TI"while parsing.;T@o; ; [I"FWhen the optional +symbolize_names+ keyword argument is set to a ;TI"Mtrue value, returns symbols for keys in Hash objects (default: strings).;T@o;; [I"SPsych.safe_load("---\n foo: bar") # => {"foo"=>"bar"} ;TI"QPsych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"};T;0: @fileI"ext/psych/lib/psych.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(yaml, legacy_permitted_classes = NOT_GIVEN, legacy_permitted_symbols = NOT_GIVEN, legacy_aliases = NOT_GIVEN, legacy_filename = NOT_GIVEN, permitted_classes: [], permitted_symbols: [], aliases: false, filename: nil, fallback: nil, symbolize_names: false, freeze: false);T@_FI" Psych;TcRDoc::NormalModule00