Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / Prime / each-i.ri
Size: Mime:
U:RDoc::AnyMethod[iI"	each:EFI"Prime#each;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"5Iterates the given block over all prime numbers.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading:
leveli:	textI"Parameters;T@o:RDoc::Markup::List:
@type:	NOTE:@items[o:RDoc::Markup::ListItem:@label[I"
+ubound+;T;	[o;
;	[I"-Optional. An arbitrary positive number. ;TI";The upper bound of enumeration. The method enumerates ;TI"1prime numbers infinitely if +ubound+ is nil.;To;;[I"+generator+;T;	[o;
;	[I";Optional. An implementation of pseudo-prime generator.;T@S;;
i;I"Return value;T@o;
;	[I"=An evaluated value of the given block at the last time. ;TI"=Or an enumerator which is compatible to an +Enumerator+ ;TI"if no block given.;T@S;;
i;I"Description;T@o;
;	[I"DCalls +block+ once for each prime number, passing the prime as ;TI"a parameter.;T@o;;;;[o;;[I"
+ubound+;T;	[o;
;	[I"?Upper bound of prime numbers. The iterator stops after it ;TI",yields all prime numbers p <= +ubound+.;T@S;;
i;I"	Note;T@o;
;	[I"M+Prime+.+new+ returns an object extended by +Prime+::+OldCompatibility+ ;TI"Nin order to be compatible with Ruby 1.8, and +Prime+#each is overwritten ;TI"+by +Prime+::+OldCompatibility+#+each+.;T@o;
;	[I"L+Prime+.+new+ is now obsolete. Use +Prime+.+instance+.+each+ or simply ;TI"+Prime+.+each+.;T:
@fileI"lib/prime.rb;T:0@omit_headings_from_table_of_contents_below000[I"B(ubound = nil, generator = EratosthenesGenerator.new, &block);T@EFI"
Prime;TcRDoc::NormalClass00