diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-09-15 14:48:31 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-09-15 14:48:31 +0900 |
| commit | 4de0a2afbfc851047e20cef28e96d9e982f88096 (patch) | |
| tree | 352c296ff83498408b055833f3963cc9862f2453 /mrblib/numeric.rb | |
| parent | f0f113ef0edcf7a396053308d6352ee2ded7a7f3 (diff) | |
| download | mruby-4de0a2afbfc851047e20cef28e96d9e982f88096.tar.gz mruby-4de0a2afbfc851047e20cef28e96d9e982f88096.zip | |
Numeric#{upto,downto}: limit may not be an integer
Diffstat (limited to 'mrblib/numeric.rb')
| -rw-r--r-- | mrblib/numeric.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mrblib/numeric.rb b/mrblib/numeric.rb index 9f65d5633..c1b6b39c0 100644 --- a/mrblib/numeric.rb +++ b/mrblib/numeric.rb @@ -10,7 +10,6 @@ class Integer # # ISO 15.2.8.3.15 def downto(num, &block) - raise TypeError, "expected Integer" unless num.kind_of? Integer i = self while(i >= num) block.call(i) @@ -38,7 +37,6 @@ class Integer # # ISO 15.2.8.3.27 def upto(num, &block) - raise TypeError, "expected Integer" unless num.kind_of? Integer i = self while(i <= num) block.call(i) |
