summaryrefslogtreecommitdiff
path: root/string.rb
diff options
context:
space:
mode:
-rw-r--r--string.rb1
1 files changed, 1 insertions, 0 deletions
@@ -342,6 +342,7 @@
#
# - #=~: Returns the index of the first substring that matches a given
# Regexp or other object; returns +nil+ if no match is found.
# - #index: Returns the index of the _first_ occurrence of a given substring;
# returns +nil+ if none found.
# - #rindex: Returns the index of the _last_ occurrence of a given substring;