Commented out String#scan because it is not implemented yet

This commit is contained in:
KOBAYASHI Shuji
2019-04-21 20:34:39 +09:00
parent 88c3595db3
commit cdb458ed4e
3 changed files with 16 additions and 16 deletions
+9 -12
View File
@@ -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