Bug #1598 ยป prime.diff
lib/prime.rb (working copy) | ||
---|---|---|
# if no block given.
|
||
#
|
||
# == Description
|
||
# Calls +block+ once for each prime numer, passing the prime as
|
||
# Calls +block+ once for each prime number, passing the prime as
|
||
# a parameter.
|
||
#
|
||
# +ubound+::
|
||
... | ... | |
#
|
||
# == Note
|
||
# +Prime+.+new+ returns a object extended by +Prime+::+OldCompatibility+
|
||
# in order to compatibility to Ruby 1.9, and +Prime+#each is overwritten
|
||
# in order to compatibility to Ruby 1.8, and +Prime+#each is overwritten
|
||
# by +Prime+::+OldCompatibility+#+each+.
|
||
#
|
||
# +Prime+.+new+ is now obsolete. Use +Prime+.+instance+.+each+ or simply
|