summaryrefslogtreecommitdiffhomepage
path: root/mrblib/string.rb
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-04-21 20:34:39 +0900
committerKOBAYASHI Shuji <[email protected]>2019-04-21 20:34:39 +0900
commitcdb458ed4e07698ecb028bfe397fa273ed454e13 (patch)
treea9733908f2646f908bb1e190bca095c23551b435 /mrblib/string.rb
parent88c3595db3349515634ad21a1595a5ab6b88375c (diff)
downloadmruby-cdb458ed4e07698ecb028bfe397fa273ed454e13.tar.gz
mruby-cdb458ed4e07698ecb028bfe397fa273ed454e13.zip
Commented out `String#scan` because it is not implemented yet
Diffstat (limited to 'mrblib/string.rb')
-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