summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-04-22 08:57:55 +0900
committerGitHub <[email protected]>2019-04-22 08:57:55 +0900
commit0e704d195f7af7d902e555b2c99b244d7e16b0d2 (patch)
tree60afc2367fbd8725da477924ac9a4591268e57a0 /mrblib
parenta025cd22681cbd067c833a063fad84fc3946ccd6 (diff)
parentcdb458ed4e07698ecb028bfe397fa273ed454e13 (diff)
downloadmruby-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.rb21
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