diff options
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/numeric.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mrblib/numeric.rb b/mrblib/numeric.rb index daa35c5d6..a5aa3e451 100644 --- a/mrblib/numeric.rb +++ b/mrblib/numeric.rb @@ -35,6 +35,16 @@ class Integer end ## + # Returns self + 1 + # + # ISO 15.2.8.3.19 + def next + self + 1 + end + # ISO 15.2.8.3.21 + alias succ next + + ## # Calls the given block +self+ times. # # ISO 15.2.8.3.22 |
