Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/Psych/safe_load-c.ri
Arrière
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
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages