JezK
Edit File: from-c.ri
U:RDoc::AnyMethod[iI" from:EFI"Concurrent::Maybe::from;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"0Create a new `Maybe` using the given block.;To:RDoc::Markup::BlankLine o; ; [ I"ORuns the given block passing all function arguments to the block as block ;TI"Marguments. If the block runs to completion without raising an exception ;TI"Ka new `Just` is created with the value set to the return value of the ;TI"Mblock. If the block raises an exception a new `Nothing` is created with ;TI"2the reason being set to the raised exception.;T@o; ; [I"N@param [Array<Object>] args Zero or more arguments to pass to the block. ;TI":@yield The block from which to create a new `Maybe`. ;TI"L@yieldparam [Array<Object>] args Zero or more block arguments passed as;To:RDoc::Markup::Verbatim; [I" arguments to the function. ;T:@format0o; ; [I".@return [Maybe] The newly created object.;T@o; ; [I"0@raise [ArgumentError] when no block given.;T: @fileI"lib/concurrent/maybe.rb;T:0@omit_headings_from_table_of_contents_below00I" *args;T[ I"(*args);T@$FI" Maybe;FcRDoc::NormalClass00