| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Psych/ |
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