summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-05 06:37:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-05 06:37:50 +0000
commitf70ffbee2120cbbb8c6b0a15dfc693a69ac0d7d4 (patch)
tree2070b335aaddd33fd915c14557c82ba06ac86df9 /lib
parent369124b0ec6aa0d58ea628339713444c559bfa5f (diff)
block arg etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/jcode.rb1
-rw-r--r--lib/mathn.rb5
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/jcode.rb b/lib/jcode.rb
index 40ab48ddac..34d3ebb453 100644
--- a/lib/jcode.rb
+++ b/lib/jcode.rb
@@ -31,6 +31,7 @@ class String
original_succ
end
end
+ alias next succ
def upto(to)
return if self > to
diff --git a/lib/mathn.rb b/lib/mathn.rb
index b5cc9b818b..265ef1337f 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -1,8 +1,8 @@
#
# mathn.rb -
# $Release Version: 0.5 $
-# $Revision: 1.1.1.1 $
-# $Date: 1998/01/16 04:05:49 $
+# $Revision: 1.1.1.1.4.1 $
+# $Date: 1998/01/16 12:36:05 $
# by Keiju ISHITSUKA(SHL Japan Inc.)
#
# --
@@ -96,6 +96,7 @@ class Prime
@counts.push @seed + @seed
return @seed
end
+ alias next succ
def each
loop do