diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-04-27 14:02:38 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-27 14:02:38 +0900 |
| commit | 6f779ceac23f1fb50dae0bea3eb734575f53294a (patch) | |
| tree | 5f3d456ccc0379bf59f720957364846c99f47011 /mrblib/string.rb | |
| parent | 2b0135e869742444aed2f2448c99956ee66c1594 (diff) | |
| parent | 270131253f62d806ea480ef4793e0b39cd068ee4 (diff) | |
| download | mruby-6f779ceac23f1fb50dae0bea3eb734575f53294a.tar.gz mruby-6f779ceac23f1fb50dae0bea3eb734575f53294a.zip | |
Merge pull request #4409 from shuujii/remove-duplicated-String-each_char
Remove duplicated `String#each_char`
Diffstat (limited to 'mrblib/string.rb')
| -rw-r--r-- | mrblib/string.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mrblib/string.rb b/mrblib/string.rb index c92a9e7be..506f23c83 100644 --- a/mrblib/string.rb +++ b/mrblib/string.rb @@ -165,18 +165,6 @@ class String end ## - # Call the given block for each character of - # +self+. - def each_char(&block) - pos = 0 - while pos < self.size - block.call(self[pos]) - pos += 1 - end - self - end - - ## # Call the given block for each byte of +self+. def each_byte(&block) bytes = self.bytes |
