diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-29 17:01:44 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-05-29 17:01:52 +0900 |
| commit | b05d736b49a6d3a99b7f75c74ffd9b6613c453d3 (patch) | |
| tree | cae1cfe223f130dffe344cc533e3873f52802aa8 /mrblib/numeric.rb | |
| parent | 13a2cc3e5d27c33db7f4cf06ece4c44a79c79c53 (diff) | |
| download | mruby-b05d736b49a6d3a99b7f75c74ffd9b6613c453d3.tar.gz mruby-b05d736b49a6d3a99b7f75c74ffd9b6613c453d3.zip | |
update mrblib/*.rb files to conform (some of) Rubocop checks
Diffstat (limited to 'mrblib/numeric.rb')
| -rw-r--r-- | mrblib/numeric.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mrblib/numeric.rb b/mrblib/numeric.rb index 1f44a2c81..cf608b04b 100644 --- a/mrblib/numeric.rb +++ b/mrblib/numeric.rb @@ -48,7 +48,7 @@ module Integral return to_enum(:downto, num) unless block_given? i = self.to_i - while(i >= num) + while i >= num block.call(i) i -= 1 end @@ -89,7 +89,7 @@ module Integral return to_enum(:upto, num) unless block_given? i = self.to_i - while(i <= num) + while i <= num block.call(i) i += 1 end @@ -106,12 +106,12 @@ module Integral i = if num.kind_of? Float then self.to_f else self end if step > 0 - while(i <= num) + while i <= num block.call(i) i += step end else - while(i >= num) + while i >= num block.call(i) i += step end |
