Server IP : 111.118.215.189 / Your IP : 216.73.216.153 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Psych/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
U:RDoc::AnyMethod[iI"safe_load:EFI"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"Jcan be allowed by adding those classes to the +whitelist+. They are ;TI";additive. For example, to allow Date deserialization:;T@o:RDoc::Markup::Verbatim; [I"#Psych.safe_load(yaml, [Date]) ;T:@format0o; ; [I"NNow the Date class can be loaded in addition to the classes listed above.;T@o; ; [I"LAliases can be explicitly allowed by changing the +aliases+ parameter. ;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, [], [], true # => loads the aliases ;T;0o; ; [I"NA Psych::DisallowedClass exception will be raised if the yaml contains a ;TI"'class that isn't in the whitelist.;T@o; ; [I"MA Psych::BadAlias exception will be raised if the yaml contains aliases ;TI"1but the +aliases+ parameter is set to false.;T: @fileI"ext/psych/lib/psych.rb;T:0@omit_headings_from_table_of_contents_below000[ I"\(yaml, whitelist_classes = [], whitelist_symbols = [], aliases = false, filename = nil);T@SFI" Psych;FcRDoc::NormalModule00