class String
Public Instance Methods
scan_offset(regex)
click to toggle source
# File lib/text_sentencer/string_scan_offset.rb, line 2 def scan_offset(regex) Enumerator.new do |y| self.scan(regex) do y << Regexp.last_match end end end