diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jcode.rb | 1 | ||||
-rw-r--r-- | lib/mathn.rb | 5 |
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 |