mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Commented out String#scan because it is not implemented yet
This commit is contained in:
+9
-12
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user