diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-04-22 08:57:55 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-22 08:57:55 +0900 |
| commit | 0e704d195f7af7d902e555b2c99b244d7e16b0d2 (patch) | |
| tree | 60afc2367fbd8725da477924ac9a4591268e57a0 /mrblib | |
| parent | a025cd22681cbd067c833a063fad84fc3946ccd6 (diff) | |
| parent | cdb458ed4e07698ecb028bfe397fa273ed454e13 (diff) | |
| download | mruby-0e704d195f7af7d902e555b2c99b244d7e16b0d2.tar.gz mruby-0e704d195f7af7d902e555b2c99b244d7e16b0d2.zip | |
Merge pull request #4396 from shuujii/commented-out-String-scan
Commented out `String#scan` because it is not implemented yet
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/string.rb | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/mrblib/string.rb b/mrblib/string.rb index e9eb2be1d..c92a9e7be 100644 --- a/mrblib/string.rb +++ b/mrblib/string.rb @@ -105,18 +105,15 @@ class String self.replace(str) end - ## - # Calls the given block for each match of +pattern+ - # If no block is given return an array with all - # matches of +pattern+. - # - # ISO 15.2.10.5.32 - def scan(reg, &block) - ### *** TODO *** ### - unless Object.const_defined?(:Regexp) - raise NotImplementedError, "scan not available (yet)" - end - end +# ## +# # Calls the given block for each match of +pattern+ +# # If no block is given return an array with all +# # matches of +pattern+. +# # +# # ISO 15.2.10.5.32 +# def scan(pattern, &block) +# # TODO: String#scan is not implemented yet +# end ## # Replace only the first match of +pattern+ with |
